Skip to content

Commit

Permalink
markercolors and linecolors forgotten
Browse files Browse the repository at this point in the history
  • Loading branch information
doutriaux1 committed Mar 28, 2018
1 parent fea071d commit f89102e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Lib/parallelCoordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,23 @@ def plot(self, array, template=None, bg=False, render=True, x=None):
"markertypes", "markersizes"]
if self.markercolors is not None:
lineAtts.append("markercolors")
global markercolors
if self.linecolors is not None:
lineAtts.append("linecolors")
global linecolors
global linetypes, linewidths, markertypes, markersizes
for att in lineAtts:
# prepare local lists
exec("%s = list(self.%s)" % (att, att), globals(), locals())
exec("while len(%s) < nlines: %s+=[%s[-1]]" % (att, att, att), globals(), locals())
linetypes = locals()["linetypes"]
linewidths = locals()["linewidths"]
if self.linecolors is not None:
linecolors = locals()["linecolors"]
markersizes = locals()["markersizes"]
markertypes = locals()["markertypes"]
if self.markercolors is not None:
markercolors = locals()["markercolors"]
if self.linecolors is None:
linecolors = vcs.getcolors(list(range(nlines + 1)))
if self.markercolors is None:
Expand Down

0 comments on commit f89102e

Please sign in to comment.