diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-06-29 16:49:13 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-06-29 16:49:13 +0200 |
commit | ac30cf7c0b5d09d98c21201533d90cce5f779df8 (patch) | |
tree | 8d8cdb0a40cf43df7574fe1696ff32c7825d21b1 /lib | |
parent | 8f460d402874becb83723834b8385506cd532228 (diff) |
plotter: limit linspace size
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/plotter.py | 4 |
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] |