From f9ebc4b5c1180e630ae50833186728b8a59fe823 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Thu, 9 May 2024 17:59:11 -0500 Subject: [PATCH] Switch to log scale --- compass/ocean/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compass/ocean/plot.py b/compass/ocean/plot.py index 1bb7cbade..8832c2bb9 100644 --- a/compass/ocean/plot.py +++ b/compass/ocean/plot.py @@ -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, @@ -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,