我有一个数据集,形式如下:
data = [('name1','value1','factor1')...[('nameN','valueN','factorN')]
我试图将值绘制为y(x只是数据中y的索引)。我希望matPlotLib打印鼠标指针悬停的值的相应名称和因子。
我找到了一个实现的例子,但是它使用了wxPython,不幸的是我不能使用它。任何方法(包括如果名称可以显示在matplotlib的工具栏中,或者只是作为一个标签出现在点上,然后在指针移开时消失)都将非常有用。在
Tags:
https://mpld3.github.io/examples/scatter_tooltip.html
我希望它有用
相关问题 更多 >
编程相关推荐