Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions flopy/utils/rasters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading