joferkington / mpldatacursor

Interactive "data cursors" (a.k.a. annotation pop-ups) for matplotlib
MIT License
194 stars 47 forks source link

No arrows with style ggplot #37

Closed schlamar closed 9 years ago

schlamar commented 9 years ago

If I select the ggplot style with

import matplotlib.style
matplotlib.style.use('ggplot')

I get no arrows for the boxes:

arrows_missing

joferkington commented 9 years ago

Thanks for the bug report and sorry for my delay in replying!

I've pushed a fix in cf65c681a87b97f20928366fcc67473fcfb3cf09. In the meantime, you can work around this by specifying:

mpldatacursor.datacursor(arrowprops=dict(arrowstyle='->',
                                         connectionstyle='arc3,rad=0',
                                         edgecolor='black',
                                         facecolor='yellow'))

Thanks again for he bug report.