From b6af7e7d28bf910b6eae1e5c8097d6de7984f7c1 Mon Sep 17 00:00:00 2001 From: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com> Date: Tue, 18 Nov 2025 14:11:08 +0100 Subject: [PATCH] plot extent for values != 0 --- avaframe/out3Plot/plotUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avaframe/out3Plot/plotUtils.py b/avaframe/out3Plot/plotUtils.py index dd4bfa165..d0987c692 100644 --- a/avaframe/out3Plot/plotUtils.py +++ b/avaframe/out3Plot/plotUtils.py @@ -492,7 +492,7 @@ def constrainPlotsToData(inputData, cellSize, extentOption=False, constrainedDat else: plotBuffer = int(cfg.getfloat("plotBuffer") / cellSize) - ind = np.where(inputData > 0) + ind = np.where(inputData != 0) if len(ind[0]) > 0: rowsMin = max(np.amin(ind[0]) - plotBuffer, 0) rowsMax = min(np.amax(ind[0]) + plotBuffer, inputData.shape[0] - 1)