filebase (str) – base filename of run
starnum (int) – number of star in the stats file
savefig (str) – set to the file extension fo the desired plot file (e.g., png, pdf, etc)
plotfig (boolean) – plot the figure to a file or the screen based on savefig
otherwise return the fig object