moorepants / BicycleParameters

Calculates the geometry, masses, centers of mass, and the moments of inertia of the bicycle rider system.
https://bicycleparameters.readthedocs.io
Other
38 stars 20 forks source link

Rework the plotly graph such that only the data gets updated, instead of creating a new figure #89

Open moorepants opened 2 years ago

moorepants commented 2 years ago

The app will work more smoothly if we create the figure once and then only update the data in the plot when the widgets are manipulated by the users. Check out how the skijumpdesign app does this (starting around here: https://gitlab.com/moorepants/skijumpdesign/-/blob/master/skijumpdesign/app.py#L1107)