Python可视化:通过鼠标悬停和点击直观地确定数据属性
我正在横向平面中渲染非常大的 X、Y、Z 科学数据集,并希望单击结果以获得有关通过鼠标单击选择的区域的更多文本详细信息。
例如,想象一个科学数据集,它被渲染为填充的等高线图,并且有一个亮点。我想单击该位置以获得链接或其他文本信息。
这需要有另一个平面来提供属性信息。
对于其他人在类似情况下使用的任何方向,我将非常感激。我希望这个问题之前已经解决了,所以我不想重新发明轮子。
I am rendering very large X,Y,Z scientific datasets in the lateral plane and would like to click on the results to obtain greater textual detail about the area chosen by mouse-click.
So, for example, imagine a scientific dataset which is rendered as a filled contour plot and there is a bright spot. I would like to click on that spot to obtain a link or other textual information.
This would necessitate having another plane that would provide attribute information.
I would be most appreciative for any direction that others have used in similar cases. I expect this problem has been solved previously so I would prefer not reinventing the wheel.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您需要深入研究 matplotlib 的事件处理代码。这允许您在单击绘图的一部分或按下某个键或其他任何方式时执行一些操作。 这里是 matplotlib 站点上与事件处理有关的示例程序。
Sounds like you'll need to dive into matplotlib's event handling code. This allows you to take some action when you click on a piece of the plot, or press a key, or whatever. Here are the example programs on the matplotlib site that have to do with event handling.