ricequant / rqalpha

A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
http://rqalpha.io
Other
5.38k stars 1.61k forks source link

matplotlib更新至3.7,plot报错 #772

Open GeraldYan opened 1 year ago

GeraldYan commented 1 year ago

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...)

Be11amy commented 6 months ago

It's still a problem... ValueError: keyword grid_b is not recognized; valid keywords are ['size', 'width', 'color', 'tickdir',...