Skip to content

Commit

Permalink
Fixed error thrown when pyx not installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
msauria committed Oct 20, 2017
1 parent c65a675 commit ab8e6c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions hifive/quasar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,9 @@ def _plot_graph(self, Xs, Ys, width, dtype, xaxis='cov'):
c.stroke(path.rect(hoffset, voffset, pwidth, pheight))
return c

def _plot_line(self, Xs, Ys, width, minX, maxX, minY, maxY, color=color.rgb.black):
def _plot_line(self, Xs, Ys, width, minX, maxX, minY, maxY, pcolor=None):
if pcolor is None:
pcolor = color.rgb.black
spanX = maxX - minX
spanY = maxY - minY
hoffset = 0.9
Expand All @@ -1307,7 +1309,7 @@ def _plot_line(self, Xs, Ys, width, minX, maxX, minY, maxY, color=color.rgb.blac
lpath = path.path(path.moveto(xs[0], ys[0]))
for i in range(1, xs.shape[0]):
lpath.append(path.lineto(xs[i], ys[i]))
c.stroke(lpath, [color])
c.stroke(lpath, [pcolor])
return c

def _num2str(self, n):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

MAJOR = 1
MINOR = 5
PATCH = None
PATCH = 1
ISRELEASED = True
VERSION = '%d.%d' % (MAJOR, MINOR)
if not PATCH is None:
Expand Down

0 comments on commit ab8e6c2

Please sign in to comment.