import hvplot.xarray # noqa
rgb
can be used to display images that are distributed as three separate "channels" or "bands".
from hvplot.sample_data import landuse
da = landuse(landuse='airplane', id=90).read()
da
Since rgb images are stored starting at the top left pixel, we should start there when plotting to make sure that we get the picture in the correct orientation. To accomplish this, we use flip_yaxis
.
da.hvplot.rgb(x='x', y='y', bands='channel', data_aspect=1, flip_yaxis=True, xaxis=False, yaxis=None)