In this chapter we describe the facilities which PyXPlot has for automating repetitive tasks. We begin by introducing string variables, which can be useful for auto-generating titles and labels for graphs which are being produced in batch jobs. We then discuss the loop constructs which make it possible to run such batch jobs, producing similar plots of many different datafiles or performing calculations in an iterative fashion. Finally, we turn to PyXPlot’s interaction with the shell and filing system in which it operates, introducing a simple framework for automatically re-executing PyXPlot scripts whenever they change, allowing plots to be automatically regenerated whenever the scripts used to produce them are modified.