Quantcast
Channel: Uncategorized - Matplotlib
Viewing all articles
Browse latest Browse all 50

Coastlines and States won't plot

$
0
0

Attempting to plot some meteorological data. Plot the data and then add states and coastlines. I’ve tried adjusting zorder but states and coastlines won’t show up. Here’s the matplotlib portion of the code.

#######################
fig = plt.figure(figsize=(14,8))

ax=fig.add_subplot(1,1,1, projection=smoke.metpy.cartopy_crs)
smoke_fill = ax.contourf(smoke.x,smoke.y,smoke.values, cmap=‘jet’, levels = np.arange(0.01,1,0.05))
plt.colorbar(smoke_fill, orientation=‘horizontal’,pad=0.0, aspect=50, shrink=0.65)
ax.coastlines(color=‘black’,resolution=‘10m’)
ax.add_feature(cfeature.STATES.with_scale(‘50m’))

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 50

Trending Articles