Skip to content

Commit a05d9ea

Browse files
committed
ENH: Clicking plot legend glyph toggles indicator visibility
1 parent 4bf1f13 commit a05d9ea

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
@@ -609,6 +609,7 @@ def __eq__(self, other):
609609
f.legend.spacing = 0
610610
f.legend.margin = 0
611611
f.legend.label_text_font_size = '8pt'
612+
f.legend.click_policy = "hide"
612613
f.min_border_left = 0
613614
f.min_border_top = 3
614615
f.min_border_bottom = 6

0 commit comments

Comments
 (0)