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

circular extent stereo

parent 5cce74d6
No related branches found
No related tags found
No related merge requests found
...@@ -136,9 +136,9 @@ class CartopyMap(object): ...@@ -136,9 +136,9 @@ class CartopyMap(object):
if round: if round:
print( print(
'use stereo maps and facet plots by:', 'use stereo maps and facet plots by:',
' fig,ax=plt.subplots(subplot_kw=' ' fig,ax=plt.subplots(subplot_kw=',
f"{'projection':ccrs.NorthPolarStereo()}\n" f'{"projection":ccrs.NorthPolarStereo()}\n',
'd.isel(time=0).plot_map(proj=proj,ax=ax)', 'd.isel(time=0).plot_map(proj=proj,ax=ax)'
) )
if single_plot: if single_plot:
axm = getattr(xda.plot, plot_type)( axm = getattr(xda.plot, plot_type)(
...@@ -175,14 +175,14 @@ class CartopyMap(object): ...@@ -175,14 +175,14 @@ class CartopyMap(object):
zorder=100, zorder=100,
edgecolor='k', edgecolor='k',
) )
print(draw_labels, draw_lon_lat_labels, round, proj)
if draw_lon_lat_labels: if draw_lon_lat_labels:
_set_lon_lat_axis(axes, proj) _set_lon_lat_axis(axes, proj)
else: else:
gl = axes.gridlines(draw_labels=draw_labels) gl = axes.gridlines(draw_labels=draw_labels)
gl.top_labels = False gl.top_labels = False
gl.right_labels = False gl.right_labels = False
if proj not in stereo_maps: if not isinstance(proj, stereo_maps):
gl.xlines = False gl.xlines = False
gl.ylines = False gl.ylines = False
......
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