diff options
author | Christopher Haster <geky@geky.net> | 2022-11-10 08:04:22 +0300 |
---|---|---|
committer | Christopher Haster <geky@geky.net> | 2022-11-15 22:38:13 +0300 |
commit | 6fce9e51568a280116b519fe986e171a2b34bd5c (patch) | |
tree | dca5c43e6737951e1dc2a154ca697d046fe300b5 | |
parent | 559e17466053e8bb49002d3dcdaa1c158ae9c1fc (diff) |
Changed plotmpl.py/plot.py to not treat missing values as discontinuities
-rwxr-xr-x | scripts/plot.py | 11 | ||||
-rwxr-xr-x | scripts/plotmpl.py | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/scripts/plot.py b/scripts/plot.py index a163b7e..d2e6401 100755 --- a/scripts/plot.py +++ b/scripts/plot.py @@ -479,12 +479,11 @@ def dataset(results, x=None, y=None, define=[]): # find ys if y is not None: if y not in r: - y_ = None - else: - try: - y_ = dat(r[y]) - except ValueError: - y_ = None + continue + try: + y_ = dat(r[y]) + except ValueError: + continue else: y_ = None diff --git a/scripts/plotmpl.py b/scripts/plotmpl.py index bdb3c34..5228652 100755 --- a/scripts/plotmpl.py +++ b/scripts/plotmpl.py @@ -230,12 +230,11 @@ def dataset(results, x=None, y=None, define=[]): # find ys if y is not None: if y not in r: - y_ = None - else: - try: - y_ = dat(r[y]) - except ValueError: - y_ = None + continue + try: + y_ = dat(r[y]) + except ValueError: + continue else: y_ = None |