matplotlib 中用于数据选择的游标
我正在尝试从 matplotlib XY 图获取用户输入。该图包含多个数据集,我需要从用户选择中获取要使用的数据集和范围。我需要这个来使模型适合正确的数据集和范围。
因此,我需要两个指标,它们将根据用户的选择“附加”到特定的数据集。我需要从他们那里获取数据集信息和范围信息。
不知何故,与商业绘图包(Igor Pro、Kaleidagraph、Sigmaplot...)提供的“光标”和类似名称的小部件相一致,用于控制其拟合界面,这就是我试图重现的内容。
我已经使用 rangeselector 和其他方法检查了各种示例,我可以在网络上搜索,但我找不到任何一个似乎能够提供我需要的东西。
请问有人可以指点一下去哪里看或者从什么开始吗?
I am trying to get user input from matplotlib XY plot. The plot contains multiple datasets and I need get from user selection of which dataset to use and the range. I need this to fit model to right dataset and range.
Therefore I need two indicators, which would be "attached" to specific dataset, per user choosing. I need to get from them both the dataset info and the range info.
Somehow in line with what commercial plotting packages (Igor Pro, Kaleidagraph, Sigmaplot...) provide as "cursors" and similarly named widgets for control of their fitting interface, which is what I am trying to reproduce.
I have checked various examples with rangeselector and other methods I was able to Google on the web, but none I was able to find seems to be able to provide what I need.
Would anyone have any pointers to where to look or what to start with, please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想查看以下示例: http://matplotlib.sourceforge.net/examples/ pylab_examples/ginput_manual_clabel.html
有趣的函数是 ginput、waitforbuttonpress。
You might want to look at this example: http://matplotlib.sourceforge.net/examples/pylab_examples/ginput_manual_clabel.html
The interesting functions are ginput, waitforbuttonpress.