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

前端 未结 9 620
孤街浪徒
孤街浪徒 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:20

    I'm working on google colab , i got the same problem . then what i did -for python3.6

    import mpl_finance

    from mpl_finance import candlestick_ohlc

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-11-27 05:28

    In 2020, one can now pip install mplfinance

    0 讨论(0)
提交回复
热议问题