Skip to content

Commit

Permalink
Switch to log scale
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed May 9, 2024
1 parent 3fd8f50 commit f9ebc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compass/ocean/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def plot_initial_state(input_file_name='initial_state.nc',
plt.subplot(3, 3, 8)
varName = 'areaCell'
var = 1e-6 * ds[varName]
xarray.plot.hist(var, bins=100)
xarray.plot.hist(var, bins=100, log=True)
plt.ylabel('frequency')
plt.xlabel(r'cell area (km$^2$)')
txt = '{}{:9.2e} {:9.2e} {}\n'.format(txt, var.min().values,
Expand All @@ -122,7 +122,7 @@ def plot_initial_state(input_file_name='initial_state.nc',
plt.subplot(3, 3, 9)
varName = 'dcEdge'
var = 1e-3 * ds[varName]
xarray.plot.hist(var, bins=100)
xarray.plot.hist(var, bins=100, log=True)
plt.ylabel('frequency')
plt.xlabel(r'dcEdge: cell-to-cell great-circle distance (km)')
txt = '{}{:9.2e} {:9.2e} {}\n'.format(txt, var.min().values,
Expand Down

0 comments on commit f9ebc4b

Please sign in to comment.