擅长:python、mysql、java
<p>康斯坦丁的答案是正确的,但是对于更多的背景,这个行为是从Matlab继承的。</p>
<p>在Matlab文档的<a href="http://www.mathworks.com/help/matlab/ref/subplot.html" rel="noreferrer">Figure Setup - Displaying Multiple Plots per Figure</a>部分中解释了Matlab的行为。</p>
<blockquote>
<p>subplot(m,n,i) breaks the figure window into an m-by-n matrix of small
subplots and selects the ithe subplot for the current plot. The plots
are numbered along the top row of the figure window, then the second
row, and so forth.</p>
</blockquote>