We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c550b12 + 9a6844f commit c3534eaCopy full SHA for c3534ea
acme_diags/plot/cartopy/polar_plot.py
@@ -65,6 +65,13 @@ def plot_panel(n, fig, proj, pole, var, clevels,
65
ax.set_extent([-180, 180, -55, -90], crs=ccrs.PlateCarree())
66
67
cmap = get_colormap(cmap, parameters)
68
+
69
+ theta = np.linspace(0, 2 * np.pi, 100)
70
+ center, radius = [0.5, 0.5], 0.5
71
+ verts = np.vstack([np.sin(theta), np.cos(theta)]).T
72
+ circle = mpath.Path(verts * radius + center)
73
+ ax.set_boundary(circle, transform=ax.transAxes)
74
75
p1 = ax.contourf(lon, lat, var,
76
transform=ccrs.PlateCarree(),
77
norm=norm,
@@ -75,12 +82,6 @@ def plot_panel(n, fig, proj, pole, var, clevels,
82
ax.set_aspect('auto')
83
ax.coastlines(lw=0.3)
84
78
- theta = np.linspace(0, 2 * np.pi, 100)
79
- center, radius = [0.5, 0.5], 0.5
80
- verts = np.vstack([np.sin(theta), np.cos(theta)]).T
81
- circle = mpath.Path(verts * radius + center)
- #ax.set_boundary(circle, transform=ax.transAxes)
-
85
# Plot titles
86
for i in range(3):
87
if title[i] is None:
0 commit comments