Skip to content
Discussion options

You must be logged in to vote

Well that's problematic. Yeah, we don't expose zorder (that's pretty nitty gritty) in the declarative, but that's not great here. Here's a work-around:

import xarray as xr

from metpy.cbook import get_test_data
from metpy.plots import ContourPlot, ImagePlot, MapPanel, PanelContainer, BarbPlot
from metpy.units import units

# Use sample NARR data for plotting
narr = xr.open_dataset(get_test_data('narr_example.nc', as_file_obj=False))

contour = ContourPlot()
contour.data = narr
contour.field = 'Temperature'
contour.level = 850 * units.hPa
contour.linecolor = 'red'
contour.contours = 15

barb = BarbPlot()
barb.data = narr
barb.field = ('u_wind', 'v_wind')
barb.level = 850 * units.hPa
barb.skip

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dopplershift
Comment options

@kylejgillett
Comment options

@kgoebber
Comment options

@kylejgillett
Comment options

@dopplershift
Comment options

Answer selected by kylejgillett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants