From ce1861ecac00b6e8ba905fc093c1c25da16c4edc Mon Sep 17 00:00:00 2001 From: ronjakrg Date: Tue, 19 Nov 2024 16:10:25 +0100 Subject: [PATCH] removed plotly tools and changed dragmode --- protzilla/utilities/plot_template.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protzilla/utilities/plot_template.py b/protzilla/utilities/plot_template.py index fc55b8de..edb1e3c3 100644 --- a/protzilla/utilities/plot_template.py +++ b/protzilla/utilities/plot_template.py @@ -24,7 +24,11 @@ yaxis={ "gridcolor": "lightgrey", "zerolinecolor": "lightgrey" - } + }, + modebar={ + "remove": ["autoScale2d", "lasso", "lasso2d", "toImage", "select2d"], + }, + dragmode="pan" ) pio.templates["plotly_protzilla"] = go.layout.Template(layout=layout) pio.templates.default = "plotly_protzilla" \ No newline at end of file