Skip to content

Commit

Permalink
兼容matplotlib 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhou-JiaJun committed Feb 23, 2023
1 parent 3c5a50a commit 9c5e5ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rqalpha/mod/rqalpha_mod_sys_analyser/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def _plot_spots_on_returns(self, ax, positions: Sequence[int], info: SpotInfo):
def plot(self, ax: Axes):
ax.get_xaxis().set_minor_locator(ticker.AutoMinorLocator())
ax.get_yaxis().set_minor_locator(ticker.AutoMinorLocator())
ax.grid(b=True, which='minor', linewidth=.2)
ax.grid(b=True, which='major', linewidth=1)
ax.grid(visible=True, which='minor', linewidth=.2)
ax.grid(visible=True, which='major', linewidth=1)
ax.patch.set_alpha(0.6)

# plot lines
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'tabulate',
'rqrisk >=1.0.5',
'h5py',
'matplotlib >=2.2.0',
'matplotlib >=3.1.0',
"openpyxl",
"methodtools"
]
Expand Down

0 comments on commit 9c5e5ec

Please sign in to comment.