Data Science, Machine Learning, Pattern Recognition, Pca Analysis, Data Reduction.
3*Xstd[1,:],'-',color='r', lw = 2) # Plot principal components ax.plot(np.array([Xavg[0], Xavg[0]+U[0,0]*S[0]]), np.array([Xavg[1], Xavg[1]+U[1,0]*S[0]]),'-',color='cyan', lw = 3) ax.plot(np.array([Xavg[0], Xavg[0]+U[0,1]*S[1]]), np.array([Xavg[1], Xavg[1]+U[1,1]*S[1]]),'-',color='cyan', lw = 3)