automate lots of plotting