Open AgilentGCMS opened 2 years ago
I am Also getting the same issue,
Python 3.10.2 matplotlib 3.6.0 mpldatacursor 0.7.dev0 numpy 1.23.3
Traceback (most recent call last): File "C:\Users\Will.Parry\AppData\Local\Programs\Python\Python310\lib\site-packages\matplotlib\cbook\__init__.py", line 307, in process func(*args, **kwargs) File "C:\Users\Will.Parry\AppData\Local\Programs\Python\Python310\lib\site-packages\mpldatacursor-0.7.dev0-py3.10.egg\mpldatacursor\datacursor.py", line 710, in _select fixed_event = event_axes_data(event, anno.axes) File "C:\Users\Will.Parry\AppData\Local\Programs\Python\Python310\lib\site-packages\mpldatacursor-0.7.dev0-py3.10.egg\mpldatacursor\datacursor.py", line 693, in event_axes_data x, y = ax.transData.inverted().transform_point(point) AttributeError: 'NoneType' object has no attribute 'transData' Traceback (most recent call last):
Same issue for me as well
Python 3.8.10 matplotlib 3.6.2 mpldatacursor 0.7.1 (installed from pip) numpy 1.24.1
Same issue for me
Python 3.10.7 matplotlib 3.6.2 numpy 1.24.1 mpldatacursor 0.7.1 [From pip]
Same issue for me, the code was done previous this issue was opened and it was working fine then. Now, it returns this error.
Python 3.9 matplotlib 3.5.1 mpldatacursor 0.7.1 [from pip]
I'm also using MacOS, but with an Apple Silicon chip.
+1
Same issue for me as well.
Python 3.10.4 64 Bit matplotlib 3.6.2 mpldatacursor 0.7.1 [from pip] numpy 1.22.3
Still an issue here as well:
Python 3.11.8 64 Bit matplotlib 3.6.3 [to avoid #116 ] mpldatacursor 0.7.1 [from pip] numpy 1.26.4
clean virtual env on Windows 10
Will update this post if workaround is found
Probably the 'ax' is not receiving anything and should receive some object. Try passing the figure first.
I'm trying to use mpldatacursor to label a few points on a plot. Here's an MWE:
When I click on any of the three points plotted, no label appears and I get this error:
The above traceback is repeated about a dozen times. I'm using matplotlib 3.5.3 with python 3.9.14. My matplotlib backend is MacOSX.