viz.show_bands
viz.show_bands(arr, descs, title, cmap_per_band=None, ncols=4, figsize=None)Plot every band as a small subplot in a balanced grid.
_balanced_grid keeps the layout from looking lopsided when n is awkward (e.g. avoids “4 in top row, 1 in bottom row” for n=5).
cmap_per_band maps band description -> matplotlib colormap name. Bands not listed (or mapped to "gray") get a percentile-stretched grayscale; bands with an explicit colormap are shown with their raw values so categorical maps like ESA WorldCover ("tab20") display correctly.