changed plot_fgmax so tstart and tend on separate lines