xrviz icon indicating copy to clipboard operation
xrviz copied to clipboard

Smooth animation via caching?

Open rsignell-usgs opened this issue 6 years ago • 3 comments

The animation capability is great. It would also be even greater if we could cache the frames for smoother animation after the 1st time through. I realize this might not be a xrviz issue per se, but could you please look into it @hdsingh ?

I know that with Matplotlib animation, you can set cache_frame_data=True, but not sure to accomplish this with panel.

rsignell-usgs avatar Jun 17 '19 19:06 rsignell-usgs

This is a feature that we will need pyviz's cooperation with. @philippjfr , @jbednar , where was this mentioned?

martindurant avatar Jun 17 '19 19:06 martindurant

A HoloViews (or hvPlot) DynamicMap has a parameter cache_size defaulting to 500 items, which can be increased to animate larger numbers of frames efficiently (at the cost of taking more memory). Does that help address the question?

jbednar avatar Jun 17 '19 20:06 jbednar

I am finding a solution, to correctly use cache_size with the quadmesh by discussing in pyviz.

hdsingh avatar Jun 19 '19 10:06 hdsingh