Skip to content

Commit 5c04873

Browse files
committed
gnuplotlib works with subclasses of np.ndarray
1 parent 3b36ab5 commit 5c04873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gnuplotlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2066,7 +2066,7 @@ def _massageAndValidateArgs(self, curves, curveOptions_base, subplotOptions):
20662066
# convert any scalars in the data list
20672067
if len(curves):
20682068
curves = [ np.array((c,)) if isinstance(c, numbers.Real) else c for c in curves ]
2069-
if all(type(curve) is np.ndarray for curve in curves):
2069+
if all( isinstance(curve,np.ndarray) for curve in curves):
20702070
curves = (list(curves),)
20712071
elif all(type(curve) is tuple for curve in curves):
20722072
# we have a list of tuples. I convert this into a list of lists, and

0 commit comments

Comments
 (0)