You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm this issue here with plotly installed 6.0.1. It seems to only get smaller after changing the amplitude the first time and then stays smaller.
It looks like a work around could be to add the following to your plotly figure height (e.g. 400) just under fig.add_scatter(x=x, y=y, mode='lines')
fig.update_layout(
height=400
)
You could combine this with two different ui_cards where you set min_height and max_height as well as setting the margin. This will stop the card from shrinking and growing. For example,
Component
UI (ui.*)
Severity
P3 - Low (minor inconvenience)
Shiny Version
1.3.0
Python Version
3.12.3
Minimal Reproducible Example
Behavior
When the amplitude input is changed, the matplotlib graph stays the same size, but the plotly graph becomes smaller, and then larger, so "jumping".
Error Messages (if any)
Environment
The text was updated successfully, but these errors were encountered: