Contour Plot#
A contour plot of the air temperature over the US.
import hvplot.xarray # noqa
ds = hvplot.sampledata.air_temperature('xarray').sel(time='2014-02-25 12:00')
ds.hvplot.contour(
x='lon',
y='lat',
z='air',
levels=list(range(240, 300, 5)),
cmap='plasma_r',
line_width=1.2,
data_aspect=1,
clabel='Air Temperature (K)',
title='Contour Plot (Bokeh)',
)
import hvplot.xarray # noqa
hvplot.extension('matplotlib')
ds = hvplot.sampledata.air_temperature('xarray').sel(time='2014-02-25 12:00')
ds.hvplot.contour(
x='lon',
y='lat',
z='air',
c='air',
levels=list(range(240, 300, 5)),
cmap='plasma_r',
linewidth=1.2,
data_aspect=1,
width=700,
clabel='Air Temperature (K)',
title='Contour Plot (Matplotlib)',
)
See also
This web page was generated from a Jupyter notebook and not all
interactivity will work on this website.