Data Science, Machine Learning, Artificial Intelligence, Technology, Data Mining.
ax.scatter(age_std, height_std, weight_std) # Adding eigenvectors to the 3D plot for i in range(len(eigen_vals)): vec = eigen_vecs[:,i] * eigen_vals[i] ax.quiver(0, 0, 0, vec[0], vec[1], vec[2], color='r') ax.set_xlabel('Standardized Age') ax.set_ylabel('Standardized Height')