use different color scales in xarray faceted imshow

Viewed 39

If I have a DataArray that I plot with faceted subplots:

da = xr.tutorial.scatter_example_dataset().A.isel(z=1)
da.plot(x='x', y='y', col='w')

enter image description here

xarray nicely chooses the same color bar for all the panels. But this doesn't work if one panel has very different scales that the others:

da[:,:,2] += 5
da.plot(x='x', y='y', col='w')

enter image description here

Can I have xarray choose clim separately for each panel?

0 Answers
Related