No module named 'matplotlib.finance'
时间: 2023-08-30 18:08:52 浏览: 176
matplotlib.pyplot绘图显示控制方法
5星 · 资源好评率100%
The 'matplotlib.finance' module has been removed in newer versions of matplotlib. Instead, you can use the 'mpl_finance' module or the 'finance' module from the 'mpl_toolkits' package. You can install it with the following command:
```
pip install mpl_finance
```
After installation, you can import it using:
```python
from mpl_finance import candlestick_ohlc
```
Please note that 'mpl_finance' is not actively maintained, and you may consider using other libraries like 'pandas' or 'plotly' for financial data visualization.
阅读全文