|
13 | 13 |
|
14 | 14 | __author__ = "Jonas Van Der Donckt" |
15 | 15 |
|
16 | | -from pathlib import Path |
17 | | -from typing import List, Union |
18 | 16 | import re |
19 | 17 | import dash |
20 | 18 | import dash_bootstrap_components as dbc |
21 | 19 | import pandas as pd |
22 | 20 | import plotly.graph_objects as go |
23 | 21 | import trace_updater |
| 22 | +from pathlib import Path |
| 23 | +from typing import List, Union |
24 | 24 | from dash import Input, Output, State, dcc, html |
25 | 25 |
|
26 | 26 | from plotly_resampler import FigureResampler |
@@ -90,7 +90,7 @@ def serve_layout() -> dbc.Container: |
90 | 90 | config={"modeBarButtonsToAdd": ["drawrect"]}, |
91 | 91 | ), |
92 | 92 | dcc.Graph(id="plotly-resampler-graph", figure=go.Figure()), |
93 | | - # The broad traph |
| 93 | + # The broad graph |
94 | 94 | trace_updater.TraceUpdater( |
95 | 95 | id="trace-updater", gdID="plotly-resampler-graph" |
96 | 96 | ), |
@@ -127,7 +127,7 @@ def update_dynamic_fig(coarse_grained_relayout, fine_grained_relayout): |
127 | 127 | if "shapes" in coarse_grained_relayout: |
128 | 128 | print(coarse_grained_relayout) |
129 | 129 | cl_k = coarse_grained_relayout.keys() |
130 | | - # we do not resampler when and autorange / autosize event takes place |
| 130 | + # We do not resample when and autorange / autosize event takes place |
131 | 131 | matches = fr_fig._re_matches(re.compile(r"xaxis\d*.range\[0]"), cl_k) |
132 | 132 | if len(matches): |
133 | 133 | return fr_fig.construct_update_data(coarse_grained_relayout) |
|
0 commit comments