报错可能是:
Axis limits cannot be NaN or Inf
也可能是:
MemoryError: Unable to allocate 70.8 GiB for an array with shape (9504000003,) and data type float64解决方法
步骤1. 降低matplotlib的版本:
pip install matplotlib==3.2.2
步骤2. 修改绘图的代码为:
cerebral_system.plot(volume=False)问题解析
这是个BUG…
参考链接- https://community.backtrader.com/topic/689/plotting-error-axis-limits-cannot-be-nan-or-inf/2
- https://community.backtrader.com/topic/2829/cerebro-plot-error



