From 47f1801b2332f83f374913ff7d99be4eb5843287 Mon Sep 17 00:00:00 2001 From: jonvdrdo Date: Sun, 8 May 2022 19:05:54 +0200 Subject: [PATCH] :book: adding autoscale documentation, see #49 --- README.md | 2 ++ docs/sphinx/getting_started.rst | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f79b356..b5ceb10d 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,8 @@ fig **Note** that you can add dynamic aggregation to plotly figures with the `FigureWidgetResampler` wrapper without needing to forward a port! * In general, when using downsampling one should be aware of (possible) [aliasing](https://en.wikipedia.org/wiki/Aliasing) effects. The [R] in the legend indicates when the corresponding trace is being resampled (and thus possibly distorted) or not. Additionally, the `~` suffix represent the mean aggregation bin size in terms of the sequence index. +* The plotly **autoscale** event (triggered by the autoscale button or a double-click within the graph), **does not reset the axes but autoscales the current graph-view** of plotly-resampler figures. This design choice was made as it seemed more intuitive for the developers to support this behavior with double-click than the default axes-reset behavior. The graph axes can ofcourse be resetted by using the `reset_axis` button. If you want to give feedback and discuss this further with the developers, see issue [#49](https://github.com/predict-idlab/plotly-resampler/issues/49). + ## Future work 🔨 diff --git a/docs/sphinx/getting_started.rst b/docs/sphinx/getting_started.rst index cd41692b..81559312 100644 --- a/docs/sphinx/getting_started.rst +++ b/docs/sphinx/getting_started.rst @@ -76,10 +76,12 @@ The gif below demonstrates the example usage of of :class:`FigureWidgetResampler Important considerations & tips 🚨 ---------------------------------- -* When running the code on a server, you should forward the port of the :func:`FigureResampler.show_dash ` method to your local machine. +* When running the code on a server, you should forward the port of the :func:`FigureResampler.show_dash ` method to your local machine. :raw-html:`
` + **Note** that you can add dynamic aggregation to plotly figures with the :class:`FigureWidgetResampler ` wrapper without needing to forward a port! * In general, when using downsampling one should be aware of (possible) `aliasing `_ effects. :raw-html:`
` The :raw-html:`[R]` in the legend indicates when the corresponding trace is resampled (and thus possibly distorted). :raw-html:`
` The :raw-html:`~ delta` suffix in the legend represents the mean index delta for consecutive aggregated data points. +* The plotly **autoscale** event (triggered by the autoscale button or a double-click within the graph), **does not reset the axes but autoscales the current graph-view of plotly-resampler figures**. This design choice was made as it seemed more intuitive for the developers to support this behavior with double-click than the default axes-reset behavior. The graph axes can ofcourse be resetted by using the `reset_axis` button. If you want to give feedback and discuss this further with the developers, see this issue `#49 `_. Dynamically adjusting the scatter data 🔩