<p>我正在尝试导入python中的<code>matplotlib.finance</code>模块,以便制作烛台赭石图。我的<code>matplotlib.pyplot</code>版本是2.00。我尝试使用以下命令导入它:</p>
<pre><code>import matplotlib.finance
from matplotlib.finance import candlestick_ohlc
</code></pre>
<p>我得到这个错误:</p>
<blockquote>
<p>warnings.warn(message, mplDeprecation, stacklevel=1)
MatplotlibDeprecationWarning: The finance module has been deprecated in mpl 2.0 and will be removed in mpl 2.2. Please use the module mpl_finance instead.</p>
</blockquote>
<p>然后,我没有在python中使用上述行,而是尝试使用以下行:</p>
<pre><code>import mpl_finance
</code></pre>
<p>我得到这个错误:</p>
<blockquote>
<p>ImportError: No module named 'mpl_finance'</p>
</blockquote>
<p>从<code>matplotlib.pyplot</code>导入烛台应该做什么?</p>