Open andrewheusser opened 7 years ago
one more thought (maybe worth a separate issue): it looks like the degree of sub-sampling (using pchip) changes with duration, but it shouldn't-- duration should change the rotation rate (i.e. how many degrees the camera moves with each frame), not the appearance of the data.
this will also fix the issue of static plots not being smoothed whereas animated plots are.
note: if a non-connected plot style is used (for animation or otherwise), no interpolation should be done. we'll have to parse out each line style to see if it's one of the continuous variants, which could get tricky (e.g. if there are some groups with non-connected styles and others with connected styles).
While animated line plots are resampled, static plot are not. We could add a
resample
flag to theplot
function that allows a user to upsample (or downsample) their timeseries data. Then, we could expose the function ashyp.tools.resample
.questions:
this only makes sense for timeseries data (I think), so do we allow the user to resample non-timeseries data?
how should the user interact with the flag? i.e. does 10 mean upsample by a factor of 10? what about downsampling?