Animated trajectory plotted with multidimensional scaling

Open in Colab  run this example as a notebook — or grab the .ipynb (also linked at the bottom of the page)

This is a trajectory of brain data plotted in 3D with multidimensional scaling.

/home/docs/checkouts/readthedocs.org/user_builds/hypertools/checkouts/latest/hypertools/plot/backend.py:1353: UserWarning: Failed to switch to any interactive backend (TkAgg, QtAgg, Qt5Agg, Qt4Agg, GTK4Agg, GTK3Agg, WXAgg). Falling back to 'Agg'.
  warnings.warn(BACKEND_WARNING)

# sphinx_gallery_thumbnail_path = '_static/thumbnails/sphx_glr_animate_MDS_thumb.gif'

# Code source: Andrew Heusser
# License: MIT

# import hypertools
import hypertools as hyp

# load the data
data = hyp.load('weights_avg')

# plot
fig, ani = hyp.plot(data, animate=True, reduce='MDS')

Total running time of the script: (0 minutes 23.795 seconds)

Gallery generated by Sphinx-Gallery