# Show the eigenspectrum eigenvalues = pca.explained_variance_ print("The eigenvalues:\n\t", eigenvalues) idx = eigenvalues.argsort() print(idx) plt.plot(idx, color='green', marker='D') plt.ylabel('Eigenspectrum') plt.show() This is the Python code for the eigenspectrum search and the link https://stackoverflow.com/questions/29422363/how-to-plot-an-eigenspectrum-in-python