dattalab / keypoint-moseq

https://keypoint-moseq.readthedocs.io
Other
64 stars 26 forks source link

Trajectory plots for 3D data #66

Closed calebweinreb closed 1 year ago

calebweinreb commented 1 year ago

Currently when 3D data is passed to generate_trajectory_plots, it projects it into 2D in the x/y and x/z planes. I propose that we add an addition viz function called generate_trajectory_plots_3D that instead renders the trajectory plots in an interactive viewer with plotly.

Something like this already implemented for PCs in plot_pcs_3D, which includes a slider to switch between different PCs. We could similarly use a slider to toggle between different syllables for the trajectory plots. Also, once this is implemented, it would be nice to add it to the 3D-specific tutorial notebook mentioned in https://github.com/dattalab/keypoint-moseq/issues/64.

For developing this feature, it may be useful to use these 3D tracking data and modeling results.

calebweinreb commented 1 year ago

Done https://github.com/dattalab/keypoint-moseq/commit/78256fa4fe7ab11ffa855bc34a4b4ce5aa311e41