Skip to content

Commit

Permalink
oops; failed to commit after fixing this little bugaboo; should have …
Browse files Browse the repository at this point in the history
…been len(y) instead of len(x)
  • Loading branch information
dhyams committed Jul 10, 2012
1 parent 554bd48 commit d65269d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3626,7 +3626,7 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
self.add_collection(coll) self.add_collection(coll)
coll.update(kwargs) coll.update(kwargs)


if len(x) > 0: if len(y) > 0:
minx = min(xmin.min(), xmax.min()) minx = min(xmin.min(), xmax.min())
maxx = max(xmin.max(), xmax.max()) maxx = max(xmin.max(), xmax.max())
miny = y.min() miny = y.min()
Expand Down

0 comments on commit d65269d

Please sign in to comment.