Skip to content

Commit

Permalink
Merge pull request #29 from sivasankariit/vline_label_fix
Browse files Browse the repository at this point in the history
Specify label for only one xValue of VLine
  • Loading branch information
alexras committed Apr 5, 2013
2 parents 6e2b2bb + 6fb6ee5 commit 4e08d61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VLine.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ def draw(self, fig, axis, transform=None):

return [[axis.axvline(x=xValue, **kwdict)
for xValue in self.xValues],
[self.label for xValue in self.xValues]]
[self.label if (index == 0) else None
for index in xrange(len(self.xValues))]]

0 comments on commit 4e08d61

Please sign in to comment.