Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get 3d points label using mpldatacursor #108

Open
tangyipeng100 opened this issue Apr 26, 2021 · 1 comment
Open

How to get 3d points label using mpldatacursor #108

tangyipeng100 opened this issue Apr 26, 2021 · 1 comment

Comments

@tangyipeng100
Copy link

I have installed mpldatacursor and I can run the Basic Usage. However I want to get the interactive "data cursors" when plot 3d points, but I found it cannot work. My code is as follows:
p_point = ax.plot3D(point_ab[:, 0], point_ab[:, 1], point_ab[:, 2], 'gray') datacursor(p_point)

@tangyipeng100
Copy link
Author

When I used mouth to click the point, I get the errors:
File "/home/tangyipeng/anaconda3/envs/pytorch_new/lib/python3.8/site-packages/mpldatacursor-0.7.dev0-py3.8.egg/mpldatacursor/pick_info.py", line 296, in <listcomp> ldists = [(mplot3d.proj3d.line2d_seg_dist(p0, p1, p), i) for \ AttributeError: module 'mpl_toolkits.mplot3d.proj3d' has no attribute 'line2d_seg_dist'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant