Skip to content

Commit 91e2043

Browse files
committed
fix: close #235
1 parent 2bf19f3 commit 91e2043

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/rtichoke/helpers/plotly_helper_functions.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@
2525
"ppcr": "Predicted Positives",
2626
}
2727

28+
DEFAULT_MODEBAR_BUTTONS_TO_REMOVE = [
29+
"zoom2d",
30+
"pan2d",
31+
"select2d",
32+
"lasso2d",
33+
"zoomIn2d",
34+
"zoomOut2d",
35+
"autoScale2d",
36+
"resetScale2d",
37+
"hoverClosestCartesian",
38+
"hoverCompareCartesian",
39+
"toggleSpikelines",
40+
"toImage",
41+
]
42+
2843

2944
def _create_rtichoke_plotly_curve_binary(
3045
probs: Dict[str, np.ndarray],
@@ -1987,6 +2002,7 @@ def _create_curve_layout(
19872002
}
19882003
],
19892004
"sliders": sliders,
2005+
"modebar": {"remove": list(DEFAULT_MODEBAR_BUTTONS_TO_REMOVE)},
19902006
}
19912007

19922008
if axes_ranges is not None:

0 commit comments

Comments
 (0)