Update plots in Pluto without recreating the entire figure #1171
Replies: 2 comments 4 replies
-
Looking at http://docs.juliaplots.org/latest/backends/
from I have not tried it yet in Jupyter, not sure how/if it applies to Pluto. |
Beta Was this translation helpful? Give feedback.
-
I ran some experiments with updating data in plotly instead of rerendering the entire figure, but the performance benefit seemed to be negligable. Experiments: Note that plotly in Pluto is currently quite slow because we have to create a new |
Beta Was this translation helpful? Give feedback.
-
I'm looking for something equivalent to: https://plotly.com/python/figurewidget/
This is also common in Matlab where you can create a figure and a plot and the just update the XData, YData, etc, for speed and to avoid issues with windows/figures focussing.
The idea is: it looks like rerunning the full "plot" command when changing the data is unnecessarily slow.
Having the ability of "refreshing" a plot should allow faster response times (using sliders for examples) and to create animation with for loops etc.
Is the capability already present? If so, it would be very helpful if you could point me to an example.
If not it would definitely be a very helpful addition.
(I'm looking in particular for something with the plotly backend, but I'm open to alternatives)
Beta Was this translation helpful? Give feedback.
All reactions