#772·rqalpha

matplotlib更新至3.7,plot报错

Author: GeraldYanCreated Mar 3, 2023Updated May 6, 2024

plot时会报错,keyword grid_b is not recognized 根据matplotlib3.7的release notes,

The first parameter of Axes.grid and Axis.grid has been renamed to visible The parameter was previously named b. This name change only matters if that parameter was passed using a keyword argument, e.g. grid(b=False).

所以, rqalpha/mod/rqalpha_mod_sys_analyser/plot/plot.py中的 grid(b=True...) 需要修改为grid(True...)