Closed nilswagner closed 10 years ago
It works fine with
mpldatacursor.version '0.4-dev'
It looks like the error has been introduced in 0.5-dev.
Thanks for the detailed report!
I'll look into it tonight. I think I know what the issue might be.
Hi Nils,
Thanks again for the catch and detailed issue report! It looks like I stupidly overlooked draggable cursors during my fix for your last bug report. (Thanks for all of bug reports and testing!!)
The annotation created by mpldatacursor vanishes when you pick a "yellow box".
import matplotlib.pyplot as plt import numpy as np from mpldatacursor import datacursor import mpldatacursor print mpldatacursor.version x = np.linspace(0.,2*np.pi,100) y = np.sin(x) fig = plt.figure('A simple plot') ax = fig.add_subplot(111) ax.plot(x,y) datacursor(formatter='x={x:0.2f}\ny={y:0.2f}'.format,draggable=True,display="multiple") plt.show()