Skip to content

Commit cbc507f

Browse files
committed
🖊️ review code
1 parent fb0aaa0 commit cbc507f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/dash_apps/dash_app_coarse_fine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
__author__ = "Jonas Van Der Donckt"
1515

16-
from pathlib import Path
17-
from typing import List, Union
1816
import re
1917
import dash
2018
import dash_bootstrap_components as dbc
2119
import pandas as pd
2220
import plotly.graph_objects as go
2321
import trace_updater
22+
from pathlib import Path
23+
from typing import List, Union
2424
from dash import Input, Output, State, dcc, html
2525

2626
from plotly_resampler import FigureResampler
@@ -90,7 +90,7 @@ def serve_layout() -> dbc.Container:
9090
config={"modeBarButtonsToAdd": ["drawrect"]},
9191
),
9292
dcc.Graph(id="plotly-resampler-graph", figure=go.Figure()),
93-
# The broad traph
93+
# The broad graph
9494
trace_updater.TraceUpdater(
9595
id="trace-updater", gdID="plotly-resampler-graph"
9696
),
@@ -127,7 +127,7 @@ def update_dynamic_fig(coarse_grained_relayout, fine_grained_relayout):
127127
if "shapes" in coarse_grained_relayout:
128128
print(coarse_grained_relayout)
129129
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
131131
matches = fr_fig._re_matches(re.compile(r"xaxis\d*.range\[0]"), cl_k)
132132
if len(matches):
133133
return fr_fig.construct_update_data(coarse_grained_relayout)

tests/test_figurewidget_resampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,4 +1374,4 @@ def test_fwr_adjust_series_text_input():
13741374
assert len(text) == 1000
13751375

13761376
# text === -hovertext -> so the sum should their length
1377-
assert (text == -hovertext).sum() == 1000
1377+
assert (text == -hovertext).sum() == 1000

0 commit comments

Comments
 (0)