Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/conda-dev-spec.template
Original file line number Diff line number Diff line change
Expand Up @@ -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_*
Expand Down
2 changes: 1 addition & 1 deletion polaris/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.9.0-alpha.4'
__version__ = '0.9.0-alpha.5'
19 changes: 8 additions & 11 deletions polaris/viz/planar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down
Loading