2017-04-16 4 views
1

私はhereというコードを使って、いくつかの燭台の図をPythonで作成しようとしていました。しかし、私はそれを実行したとき、私はこのエラーを取得:もちろんPythonのmathplotlib.financeエラー

/usr/lib/python3.6/site-packages/matplotlib/cbook.py:136: 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. warnings.warn(message, mplDeprecation, stacklevel=1) 

私は

from mpl_finance import candlestick_ohlc 

でライン

from matplotlib.finance import candlestick_ohlc 

を交換しようとしたが、それはまだ動作しません。 誰でもコードを実行する方法を知っていますか?ありがとう。

答えて

0

一般に、推奨されない警告のみが推奨警告です。インポートされた関数(この場合はcandlestick_ohlc)を使用して、残りのコードを実行することができます。

なぜmpl_financeのインポートが機能しないのですか?mpl_financeをインストールしましたか? https://github.com/matplotlib/mpl_financeにあるようです。

+0

date2num、ありがとうございます。 – Ryunaq