From 90e69c307c939223e50a693f69967c7a7a110f73 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 26 Jan 2024 16:13:38 +0100 Subject: plot_param: Handle low numeric ranges --- lib/plotter.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/plotter.py b/lib/plotter.py index d7e8839..7b793f4 100755 --- a/lib/plotter.py +++ b/lib/plotter.py @@ -223,6 +223,8 @@ def plot_param( x_range = int((XX.max() - XX.min()) / 10) while x_range > 1000000: x_range //= 10 + if x_range < 500: + x_range = 500 xsp = np.linspace(XX.min(), XX.max(), x_range) YY = [xsp] YY_legend = [param_name] -- cgit v1.2.3