-
-
Notifications
You must be signed in to change notification settings - Fork 74
fig.update_xaxes(range=[start,end]) and fig.update_yaxes(range=[start,end]) is not working #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey! This is indeed a bug, nice catch 👍 A quick fix for now is setting In the meantime I'll try to find a more permanent fix for this bug in the code :) Cheers, |
Hi, Thanks for the comment. I tried earlier but it wasn't working. probably I use the update_layout, Now it's working. thanks agian. |
I noticed the same issue with scaling the y-axis. Neither of the following options work for me:
Cheers, |
Thx for sharing your issue as well @ilianOptrel! I have been quite busy last month, but I'll take a closer look at this bug somewhere this week :) At first sight this bug does not occur when using the import numpy as np
import plotly.graph_objects as go
from plotly_resampler import FigureWidgetResampler
x = np.arange(2_000)
noisy_sin = (3 + np.sin(x / 200) + np.random.randn(len(x)) / 10) * x / 1_00
fig = FigureWidgetResampler(default_n_shown_samples=20)
fig.add_trace(go.Scattergl(name="exp",x=x,y=noisy_sin))
fig.update_layout(xaxis_range=[200,300])
fig.update_layout(yaxis_range=[0,30])
fig |
Here is my code:
I am trying to show only the selected range values using the custom slider.
The text was updated successfully, but these errors were encountered: