Since matplotlib.finance has been deprecated, how can I use the new mpl_finance module?

前端 未结 9 623
孤街浪徒
孤街浪徒 2020-11-27 04:49

I am trying to import matplotlib.finance module in python so that I can make a Candlestick OCHL graph. My matplotlib.pyplot version is 2.00. I\'ve

9条回答
  •  自闭症患者
    2020-11-27 05:23

    mpl_finance is no longer part of matplotlib. Install the module directly from gitHub via pip

    pip install https://github.com/matplotlib/mpl_finance/archive/master.zip
    

    and import it with

    from mpl_finance import candlestick_ohlc
    

    Then it works the same as before.

提交回复
热议问题