擅长:python、mysql、java
<p>我想这最好用下面的图片来解释:</p>
<p><img src="https://i.stack.imgur.com/AEGXG.png" alt="enter image description here"/></p>
<p>要初始化上述内容,可以键入:</p>
<pre><code>import matplotlib.pyplot as plt
fig = plt.figure()
fig.add_subplot(221) #top left
fig.add_subplot(222) #top right
fig.add_subplot(223) #bottom left
fig.add_subplot(224) #bottom right
plt.show()
</code></pre>