Skip to content

Commit a78edf5

Browse files
committed
REF: Plot: Set fig.yaxis.ticker.desired_num_ticks=3 for indicator subplots
1 parent 3b9a294 commit a78edf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backtesting/_plotting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ def new_indicator_figure(**kwargs):
301301
**kwargs)
302302
fig.xaxis.visible = False
303303
fig.yaxis.minor_tick_line_color = None
304+
fig.yaxis.ticker.desired_num_ticks = 3
304305
return fig
305306

306307
def set_tooltips(fig, tooltips=(), vline=True, renderers=()):

0 commit comments

Comments
 (0)