pymvpa2 plotmotionqc \
-s "$dataroot"/haxby2001/sub*/BOLD/task001_run*/bold_moest.txt \
--savefig "$outdir"/motion.png
See also
The full source code of this example is included in the PyMVPA source distribution (doc/examples/cmdline/plot_motion.sh).