import h5py
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
f = h5py.File("E:/DataSets/shapenet_part_seg_hdf5_data/hdf5_data/ply_data_train0.h5","r")
pts=f["data"].value[5]
print(f["label"].value[5])
fig=plt.figure(dpi=180)
ax=Axes3D(fig)
plt.title("point cloud")
ax.scatter(pts[:,0],pts[:,1],pts[:,2],c="b",marker=".",s=15,linewidths=0,alpha=1,cmap="spectral")
plt.show()