Skip to content

Commit 6c60b2a

Browse files
Update script.py
1 parent e3eb5fa commit 6c60b2a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

script.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@
2727
plt.plot(range(1, len(pca.explained_variance_ratio_)+1), pca.explained_variance_ratio_.cumsum(), marker='o')
2828
plt.xlabel('Number of components')
2929
plt.ylabel('Cumulative explained variance')
30-
plt.show()
31-
32-
# guardar la figura en un archivo png
3330
plt.savefig('plot.png')
31+
plt.show()

0 commit comments

Comments
 (0)