Animated trajectory plotted with multidimensional scalingΒΆ

This is a trajectory of brain data, hyperaligned and then plotted in 3D with multidimensional scaling.

# Code source: Andrew Heusser
# License: MIT

import hypertools as hyp
import scipy.io as sio
import numpy as np

data = hyp.tools.load('weights')
aligned_w = hyp.tools.align(data)

w1 = np.mean(aligned_w[:17],0)
w2 = np.mean(aligned_w[18:],0)

hyp.plot([w1, w2], animate=True, model='MDS')

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

Generated by Sphinx-Gallery