擅长:python、mysql、java
<p>我不太清楚你做了什么,因为<code>aX</code>在默认情况下并没有被定义为pylab的一部分。</p>
<p>通常,<code>ax</code>指的是axis对象。有几种方法可以得到:</p>
<pre><code>matplotlib.pyplot.gca() # gca = get current axis
matplotlib.pyplot.subplot(2,1,1) # For creating multiple plots in one figure
fig.get_axes()[x] # Where fig is a Figure object
</code></pre>