Skip to content

Commit

Permalink
Changed plotmpl.py/plot.py to not treat missing values as discontinui…
Browse files Browse the repository at this point in the history
…ties
  • Loading branch information
geky committed Nov 15, 2022
1 parent 559e174 commit 6fce9e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions scripts/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 5 additions & 6 deletions scripts/plotmpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6fce9e5

Please sign in to comment.