Skip to content

Commit

Permalink
adds titles to meridional plots (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewEichmann-NOAA authored Sep 1, 2023
1 parent 3146e9d commit 073af7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ush/soca/soca_vrfy.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ def plotMeridionalSlice(config):
"""
pcolormesh of a Meridional slice of an ocean field
"""
variable = config['variable']
exp = config['exp']
PDY = config['PDY']
cyc = config['cyc']
lon = float(config['lon'])
grid = xr.open_dataset(config['grid file'])
data = xr.open_dataset(config['fields file'])
Expand All @@ -169,6 +173,8 @@ def plotMeridionalSlice(config):
cmap=config['colormap'])
plt.colorbar(label=config['variable']+' Lon '+str(lon), shrink=0.5, orientation='horizontal')
ax.set_ylim(-config['max depth'], 0)
title = f"{exp} {PDY} {cyc} {variable} lon {int(lon)}"
ax.set_title(title)
dirname = os.path.join(config['comout'], config['variable'])
os.makedirs(dirname, exist_ok=True)
figname = os.path.join(dirname, config['variable'] +
Expand Down

0 comments on commit 073af7e

Please sign in to comment.