@@ -0,0 +1,1108 @@
+#!/usr/bin/env python%0A%0Aimport climate%0Aimport lmj.plot%0Aimport numpy as np%0A%0Aimport database%0Aimport plots%0A%0A%0A@climate.annotate(%0A    root='plot data rooted at this path',%0A    pattern=('plot data from files matching this pattern', 'option'),%0A)%0Adef main(root, pattern='*/*block01/*trial01*.csv.gz'):%0A    cubes = True%0A    with plots.space() as ax:%0A        for i, trial in enumerate(database.Experiment(root).trials_matching(pattern)):%0A            trial.load()%0A            #trial.mask_fiddly_target_frames()%0A            #trial.mask_dropouts()%0A            if cubes:%0A                plots.show_cubes(ax, trial)%0A                cubes = False%0A            df = trial.trajectory('r-fing-index')%0A            ax.plot(np.asarray(df.x),%0A                    np.asarray(df.z),%0A                    zs=np.asarray(df.y),%0A                    color=lmj.plot.COLOR11%5B1%5D,%0A                    alpha=0.7,%0A                    lw=2)%0A            plots.skeleton(ax, trial.movement_to(6), -1, color='#111111', lw=2)%0A            ax.azim = -60%0A            ax.elev = 11%0A            ax.dist = 8%0A%0A%0Aif __name__ == '__main__':%0A    climate.call(main)%0A

add skeleton plot