matplotlib - 3D Points visualization in Python -
i want visualize 3d points in python. used matplotlib toolkit, favorite. below sample code:
import pypcd #https://github.com/dimatura/pypcd l = pypcd.pointcloud.from_path('left.pcd') t = pypcd.pointcloud.from_path('target.pcd') import matplotlib.pyplot plt mpl_toolkits.mplot3d import axes3d fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.scatter(t.pc_data['x'], t.pc_data['y'], t.pc_data['z'], c='b') ax.scatter(l.pc_data['x'], l.pc_data['y'], l.pc_data['z'], c='g') plt.show()
unfortunately, plot took time load. slow interact also. noticed since number data points huge (approximately 217088), hence not rendering properly.
any workaround, please?
i had problems large amount of objects in matplotlib, , i'm using glscatterplotitem display multiple dots in 3d space. opengl based display function in pyqtgraph library. rendering time couple of seconds disply running fluently millions of points.
Comments
Post a Comment