文字/数字输入字段是否存在于matplotlib中? [英] Do text / number input fields exist in matplotlib?

查看:144
本文介绍了文字/数字输入字段是否存在于matplotlib中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文字和/或数字输入字段是否存在用于 matplotlib

Do text and / or number input fields exist for matplotlib?

我已经看到了小部件 Slider ,但那是不同的。我想要一个简单的数字输入字段。

I have seen the widget Slider, but that is something different. I want a simple number input field.

推荐答案

目前不存在可用于输入数字的小部件。如果您有一小部分离散数字,则可以使用 RadioButton 或者你可以使用你已经建议的滑块。

There currently exists no widgets that could be used to enter numbers as text. If you had a small selection of discrete numbers then you could use a RadioButton or you could use a slider as you've already suggested.

你最好使用 Tkinter 。这将允许您添加所需的任何GUI元素。也可以在Tkinter中嵌入matplotlib图形,如这里和< a href =http://matplotlib.org/examples/user_interfaces/embedding_in_tk2.html =nofollow>这里。

Your best would be to build a full GUI using Tkinter. This would allow you to add whatever GUI elements you need. It's also possible to embed matplotlib graphs in Tkinter, as shown in the two examples here and here.

这篇关于文字/数字输入字段是否存在于matplotlib中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆