Skip to content

Commit

Permalink
refactor: format figures
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Sep 11, 2024
1 parent 3fe2737 commit 477b29c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/fromfile_irreg/src/plot_output_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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")
Expand Down

0 comments on commit 477b29c

Please sign in to comment.