ContextLab / hypertools

A Python toolbox for gaining geometric insights into high-dimensional data
http://hypertools.readthedocs.io/en/latest/
MIT License
1.82k stars 160 forks source link

resample trajectory and hyp.tools.resample #94

Open andrewheusser opened 7 years ago

andrewheusser commented 7 years ago

While animated line plots are resampled, static plot are not. We could add a resample flag to the plot function that allows a user to upsample (or downsample) their timeseries data. Then, we could expose the function as hyp.tools.resample.

questions:

andrewheusser commented 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).