mpldatacursor icon indicating copy to clipboard operation
mpldatacursor copied to clipboard

How to get 3d points label using mpldatacursor

Open tangyipeng100 opened this issue 3 years ago • 1 comments

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 avatar Apr 26 '21 13:04 tangyipeng100

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'

tangyipeng100 avatar Apr 26 '21 13:04 tangyipeng100