7/5/2023 0 Comments 3d stick figure animator![]() # set up lines which create the stick figures Pts = sum(,, , 'o', color='C3') for i in range(N_trajectories)], ) Lines = sum(,, , '-', color='C3')for i in range(N_trajectories)], ) Pts = sum(,, , 'o', c=c) for c in colors], ) Lines = sum(,, , '-', c=c) for c in colors], ) # choose a different color for each trajectoryĬolors = plt.cm.jet(np.linspace(0, 1, int(N_trajectories))) # store data in numpy 3D array: (tag,time-stamp,xyz-coordinates) X_t = np.zeros(shape=(int(N_tag), df.shape, 3)) # pseudo time-vector for first walking activity So please tell me why this happens and fix this code and show animation?ĭetails : matplotlib=3.3.3, python3=3.6.9, numpy=1.19.5ĪrrayMarker3Dcoordinates = np.load('/home/shime/posesimulate/pose.npy')ĭf = pd.DataFrame(arrayMarker3Dcoordinates.reshape(size//51, 17*3),Ĭolumns=) I tried to resolve this problem and made the following code. "Module 'matplotlib.cm' has no 'jet' member" I'm trying to make moving stick figure 3D animation with matplotlib, using npy file made from VideoPose3D.Īnd I find this topic and use the same code, but it made this log.
0 Comments
Leave a Reply. |