diff --git a/deploy/conda-dev-spec.template b/deploy/conda-dev-spec.template index 8710629ac..533d8068e 100644 --- a/deploy/conda-dev-spec.template +++ b/deploy/conda-dev-spec.template @@ -17,7 +17,7 @@ mache={{ mache }} matplotlib-base>=3.9.0 metis={{ metis }} moab={{ moab }}=*_tempest_* -mosaic>=1.2.0,<2.0.0 +mosaic>=1.2.1,<2.0.0 mpas_tools={{ mpas_tools }} nco netcdf4=*=nompi_* diff --git a/polaris/version.py b/polaris/version.py index 7032ae6d7..6c11deaf8 100644 --- a/polaris/version.py +++ b/polaris/version.py @@ -1 +1 @@ -__version__ = '0.9.0-alpha.4' +__version__ = '0.9.0-alpha.5' diff --git a/polaris/viz/planar.py b/polaris/viz/planar.py index 3f8160ed6..b818d7376 100644 --- a/polaris/viz/planar.py +++ b/polaris/viz/planar.py @@ -219,17 +219,14 @@ def plot_horiz_field( # noqa: C901 ax.set_xlabel('x (km)') ax.set_ylabel('y (km)') ax.set_aspect('equal') - ax.autoscale(tight=True) - - # uncomment below once mosaic can mirror patches across periodic axis: - # -------------------------------------------------------------------- - # if descriptor.is_periodic: - # if descriptor.x_period and not descriptor.y_period: - # ax.autoscale(axis='y', tight=True) - # elif not descriptor.x_period and descriptor.y_period: - # ax.autoscale(axis='x', tight=True) - # else: - # ax.autoscale(axis='both', tight=True) + + if descriptor.is_periodic: + if descriptor.x_period and not descriptor.y_period: + ax.autoscale(axis='y', tight=True) + elif not descriptor.x_period and descriptor.y_period: + ax.autoscale(axis='x', tight=True) + else: + ax.autoscale(axis='both', tight=True) # scale ticks to be in kilometers ax.xaxis.set_major_formatter(lambda x, pos: f'{x / 1e3:g}')