diff --git a/flopy/utils/rasters.py b/flopy/utils/rasters.py index 1c8989d89..c2c72a596 100644 --- a/flopy/utils/rasters.py +++ b/flopy/utils/rasters.py @@ -996,6 +996,11 @@ def plot(self, ax=None, contour=False, **kwargs): import_optional_dependency("rasterio") from rasterio.plot import show + # rasterio >= 1.5 defaults to adjusting data to [0, 1], which + # can clash with user-supplied vmin/vmax. don't adjust unless + # the caller explicitly asks for it + kwargs.setdefault("adjust", False) + if self._dataset is not None: ax = show(self._dataset, ax=ax, contour=contour, **kwargs)