Skip to content
Snippets Groups Projects
Commit 33d1766a authored by Aaron Spring's avatar Aaron Spring
Browse files

more plotting stuff minor changes

parent 57e75faa
No related branches found
No related tags found
No related merge requests found
......@@ -159,15 +159,6 @@ class CartopyMap(object):
else:
if round:
ax.set_boundary(circle, transform=ax.transAxes)
max_lat = 30
if isinstance(proj, ccrs.NorthPolarStereo):
ax.set_extent(
[-180, 180, max_lat, 90], crs=ccrs.PlateCarree()
)
elif isinstance(proj, ccrs.SouthPolarStereo):
ax.set_extent(
[-180, 180, -90, -max_lat], crs=ccrs.PlateCarree()
)
axm = getattr(xda.plot, plot_type)(
lon, lat, ax=ax, transform=ccrs.PlateCarree(), **kwargs
)
......@@ -184,7 +175,7 @@ class CartopyMap(object):
zorder=100,
edgecolor='k',
)
print(draw_labels, draw_lon_lat_labels, round, proj)
if draw_lon_lat_labels:
_set_lon_lat_axis(axes, proj)
else:
......
......@@ -60,7 +60,9 @@ def test_plot_map_projstr(da, projstr):
pytest.lazy_fixture('air_temperature_da'),
],
)
@pytest.mark.parametrize('projstr', ['NorthPolarStereo','SouthPolarStereo','Stereographic'])
@pytest.mark.parametrize(
'projstr', ['NorthPolarStereo', 'SouthPolarStereo', 'Stereographic']
)
def test_plot_map_stereo(da, projstr):
proj = eval(f'ccrs.{projstr}()')
fig, ax = plt.subplots(subplot_kw={'projection': proj})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment