将鼠标悬停在matplotlib烛台中以获取python [英] Mouse Hover in matplotlib candlestick for python
问题描述
我已经实现了这个示例:
I have implemented this example:
http://matplotlib.sourceforge.net/examples/pylab_examples/finance_demo.html?highlight = candlestick
我想为烛台实现鼠标悬停功能,这样我就可以在某个面板的弹出窗口或标签中看到烛台的开/高/低/收盘价.我跟着:
I would like to implement mouse hover features for the candlestick so that I can see the candlestick's open/high/low/close either in a popup or a label in a certain panel. I was following along with:
http://matplotlib.sourceforge.net/examples/event_handling/pick_event_demo.html
不幸的是,该功能:
candlestick(ax, quotes, width=0.6)
没有 picker = True
关键字.还有另一种方法来实现鼠标悬停功能吗?
does not have a picker=True
keyword. Is there another way to implement the mouse hover feature?
matplotlib.finance的文档 http://doc.astro-wise.org/matplotlib.finance.html
Docs for matplotlib.finance http://doc.astro-wise.org/matplotlib.finance.html
推荐答案
I wrote an answer to handle "mouse over" events here. That would be a good first point of call to find out how to do something similar.
这篇关于将鼠标悬停在matplotlib烛台中以获取python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!