summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-06-29 16:49:13 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-06-29 16:49:13 +0200
commitac30cf7c0b5d09d98c21201533d90cce5f779df8 (patch)
tree8d8cdb0a40cf43df7574fe1696ff32c7825d21b1 /lib
parent8f460d402874becb83723834b8385506cd532228 (diff)
plotter: limit linspace size
Diffstat (limited to 'lib')
-rwxr-xr-xlib/plotter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/plotter.py b/lib/plotter.py
index 342655f..9d6f7ec 100755
--- a/lib/plotter.py
+++ b/lib/plotter.py
@@ -211,7 +211,9 @@ def plot_param(
XX.extend(by_other_param[other_param_key]["X"])
XX = np.array(XX)
- x_range = int((XX.max() - XX.min()) * 10)
+ x_range = int((XX.max() - XX.min()) / 10)
+ while x_range > 1000000:
+ x_range //= 10
xsp = np.linspace(XX.min(), XX.max(), x_range)
YY = [xsp]
YY_legend = [param_name]