Skip to content

Commit f17cdd0

Browse files
author
tteil
committed
small DS plot bug (drop)
1 parent 11aab4f commit f17cdd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utilities/DS_Plot.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, data, title='',
3535
self.macro_x = macro_x
3636
self.macro_y = macro_y
3737
self.plotObjType = plotObjType
38-
self.cmap = itertools.cycle(cmap)
38+
self.cmap = cmap
3939
self.labels = labels
4040
self.plotFcn = plotFcn
4141

@@ -67,7 +67,7 @@ def generateCurves(self):
6767
curves.append(curve)
6868
count += 1
6969

70-
if self.data[i].dropna().empty:
70+
if self.data[i].dropna(how='all').empty:
7171
missingData.append(True)
7272
# Label each curve with a unique identifier
7373
curves = {i: curves[i] for i in range(len(curves))}

0 commit comments

Comments
 (0)