2017年7月5日 星期三

Python - matplotlib pyplot - How to change figure size of Matplotlib pyplot - 更改Matplotlib pyplot 的畫布大小

Python version:Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
matplotlib version:2.0.0
System version:Windows 10
  1. from matplotlib import pyplot as plt
  2. plt.rcParams["figure.figsize"] = (8,5)
  3. plt.plot([1,2,3,4],[1,2,1,3])
  4. plt.show()
Result:

沒有留言:

張貼留言