From 33c41ccb31ef091de9a28653c7d96b1aff68adff Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sat, 15 Aug 2020 12:29:31 +0200 Subject: [PATCH] allow negative values for y --- plot_graphutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot_graphutils.py b/plot_graphutils.py index cc6a772..e59e21f 100644 --- a/plot_graphutils.py +++ b/plot_graphutils.py @@ -17,7 +17,7 @@ def getlimits_y(y): if y_min_height != 0 and y_min_height > ymax: ymax = y_min_height y_start_val = CFG("yaxis_start_value") - if y_start_val < min(y) or CFG("yaxis_force_start_value"): + if y_start_val < min(y) or ( CFG("yaxis_force_start_value") and not min(y) < 0): ymin=y_start_val else: ymin=min(y)