소스 검색

Changed plotmpl.py/plot.py to not treat missing values as discontinuities

Christopher Haster 3 년 전
부모
커밋
6fce9e5156
2개의 변경된 파일10개의 추가작업 그리고 12개의 파일을 삭제
  1. 5 6
      scripts/plot.py
  2. 5 6
      scripts/plotmpl.py

+ 5 - 6
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
 

+ 5 - 6
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