From 477b29c055ad820802041d93cee1e6c1bc244e49 Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Wed, 11 Sep 2024 23:49:16 +0200 Subject: [PATCH] refactor: format figures --- examples/fromfile_irreg/src/plot_output_thermo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/fromfile_irreg/src/plot_output_thermo.py b/examples/fromfile_irreg/src/plot_output_thermo.py index 6476814a..7888e52e 100644 --- a/examples/fromfile_irreg/src/plot_output_thermo.py +++ b/examples/fromfile_irreg/src/plot_output_thermo.py @@ -82,7 +82,7 @@ def plot_timeseries_domain_slices( """plot 2-D cross-sections along y axis of 3-D data 'data3d' for several timeslices given times and meshgrid for centres in x and z, 'xxh' and 'zzh'.""" - fig = plt.figure(figsize=(16, 9)) + fig = plt.figure(figsize=(21, 15)) ncols = len(t2plts) nrows = data4d.shape[1] gs = GridSpec( @@ -96,8 +96,6 @@ def plot_timeseries_domain_slices( ) plt.colorbar(pcm, cax=cax, orientation="horizontal") - fig.tight_layout() - if savedir != "": savename = savedir + "/timeseries_" + key + ".png" fig.savefig(savename, dpi=400, bbox_inches="tight", facecolor="w", format="png")