Move helper script to tutorials directory

This hopefully make it clearer that it only generates figures for the
samples in the tutorial, not for the entire documentation.