Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Open
Milestone
Description
After creating ampl_toolkits.mplot3d.art3d.Path3DCollection, e.g.,
frommatplotlibimportpyplotaspltfrommpl_toolkits.mplot3d.art3dimportPath3DCollectionimportnumpyasnppos=np.random.rand(3,6)print(pos.T)fig=plt.figure()ax=fig.add_subplot(projection='3d')ax.scatter(pos[0],pos[1],pos[2],c=np.arange(pos.shape[1]))
I'd like to retrievepos from the figure. As in 2D, I expectedget_offsets to retrieve the data, but
forcinax.get_children():ifisinstance(c,Path3DCollection):print(c.get_offsets())
only returns the first two colums ofpos.