Skip to content

Commit 7b20017

Browse files
author
ehmatthes
committed
自动保存图表
1 parent 2b8cc7b commit 7b20017

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

scatter_squares.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# 设置没个坐标轴的取值范围
1717
plt.axis([0, 1100, 0, 1100000])
1818

19-
plt.show()
19+
plt.savefig('squares_plot.png', bbox_inches='tight')

squares_plot.png

32.3 KB
Loading

0 commit comments

Comments
 (0)