python 子图大小
In some cases, the automatic figure size generated by the matplotlib.pyplot is not visually good or there could be some non-acceptable ratio in the figure. So, rather than allowing a pyplot to decide the figure size, we can manually define the dimensions of the figure.
在某些情况下,由matplotlib.pyplot生成的自动图形大小在视觉上不佳,或者图形中可能存在某些不可接受的比例。 因此,我们可以手动定义图形的尺寸,而不是允许pyplot来确定图形的尺寸。
In this article, we are going to change figure size using an inbuilt function:
在本文中,我们将使用内置函数来更改图形大小 :
matplotlib.pyplot.figure(figsize)
<