Interpolation

I was wondering if there is an automated way to interpolate between frames of an animation (like the Gapminder example) so that the frames are not jerky or so that we can control the interpolation scheme.

Not yet, it's on my short-term list, but we need to get through some stability and bugfix work first, and the core devs are currently stretched quite thin. It's not a trivial feature, but I have some ideas about how this could be implemented, so if there are any especially motivated people looking for a project I'd be happy to discuss it.

Thanks,

Bryan

···

On Dec 12, 2016, at 7:42 AM, [email protected] wrote:

I was wondering if there is an automated way to interpolate between frames of an animation (like the Gapminder example) so that the frames are not jerky or so that we can control the interpolation scheme.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/49777d83-f69f-427d-bdab-92b9a69d2f70%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

A workaround would be to interpolate your input data. If you start of with a Pandas DataFrame for example, and turn that into a Bokeh ColumnDataSource, it would be very easy to use Pandas interpolation options. It also means you have to transfer more data to the plot, so there are certainly drawbacks.

http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.interpolate.html

Regards,
Rutger

···

On Monday, December 12, 2016 at 2:42:03 PM UTC+1, [email protected] wrote:

I was wondering if there is an automated way to interpolate between frames of an animation (like the Gapminder example) so that the frames are not jerky or so that we can control the interpolation scheme.

Thanks, Rutger. I should’ve known that Pandas can handle this!

···

On Tuesday, December 13, 2016 at 3:21:56 AM UTC-5, Rutger Kassies wrote:

A workaround would be to interpolate your input data. If you start of with a Pandas DataFrame for example, and turn that into a Bokeh ColumnDataSource, it would be very easy to use Pandas interpolation options. It also means you have to transfer more data to the plot, so there are certainly drawbacks.

http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.interpolate.html

Regards,
Rutger

On Monday, December 12, 2016 at 2:42:03 PM UTC+1, [email protected] wrote:

I was wondering if there is an automated way to interpolate between frames of an animation (like the Gapminder example) so that the frames are not jerky or so that we can control the interpolation scheme.