joferkington / mpldatacursor

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

Problem with multiple draggable cursors #32

Closed wilywampa closed 9 years ago

wilywampa commented 9 years ago

Not sure how to describe this so I'll demonstrate with this: cursor2

For some reason there's a big discrepancy between where the mouse cursor actually is versus where the annotation thinks it is. Any idea what the problem is here?

import numpy as np
from mpldatacursor import datacursor
import matplotlib.pyplot as plt

t = np.linspace(0, 10, 200)
x = np.cos(t)
y = np.sin(t)

plt.close('all')
plt.figure()
plt.plot(t, 3 * x)
plt.plot(t, 10 * y, 'r')

cursor = datacursor(axes=[plt.gca()], display='multiple', draggable=True)
nilswagner commented 9 years ago

Just out of curiosity, how did you record your desktop ? Nils

Am 22.03.2015 um 22:23 schrieb wilywampa notifications@github.com:

Not sure how to describe this so I'll demonstrate with this:

For some reason there's a big discrepancy between where the mouse cursor actually is versus where the annotation thinks it is. Any idea what the problem is here?

import numpy as np from mpldatacursor import datacursor import matplotlib.pyplot as plt

t = np.linspace(0, 10, 200) x = np.cos(t) y = np.sin(t)

plt.close('all') plt.figure() plt.plot(t, 3 * x) plt.plot(t, 10 * y, 'r')

cursor = datacursor(axes=[plt.gca()], display='multiple', draggable=True) — Reply to this email directly or view it on GitHub.

wilywampa commented 9 years ago

LICEcap: https://github.com/lepht/licecap

wilywampa commented 9 years ago

This is a matplotlib issue: https://github.com/matplotlib/matplotlib/issues/4295