擅长:python、mysql、java
<p>你也可以</p>
<pre><code>fig, ax = plt.subplots() #create figure and axes
candlestick(ax, quotes, ...)
</code></pre>
<p>或者</p>
<pre><code>candlestick(plt.gca(), quotes) #get the axis when calling the function
</code></pre>
<p>第一种给你更多的灵活性。如果烛台是你唯一想设计的东西,第二个就容易多了</p>