def plot_narrowgap_alfven_modes(filename="narrowgap_alfven_modes.eps"): fig = pyplot.figure(figsize=(8,10)) fig.subplots_adjust(left=0.15) datapath = benchmarkdir + "narrowgap_alfven/" readnetcdf.plot_all_components(datapath + "m1.nc", 0, showpoints=0) readnetcdf.plot_all_components(datapath + "m1.nc", 22, showpoints=0) readnetcdf.plot_all_components(datapath + "m1.nc", 50, showpoints=0) readnetcdf.plot_all_components(datapath + "m1.nc", 100, showpoints=0) majorformatter = matplotlib.ticker.FormatStrFormatter("%0.1e") for ax in fig.axes: ax.yaxis.set_major_formatter(majorformatter) ax.set_title("") fig.savefig(filename, bbox_inches='tight', pad_inches=0.01)