Some helpful scripts to do things in matplotlib