Skip to content

Commit

Permalink
Merge pull request yhat#264 from Xbar/patch-1
Browse files Browse the repository at this point in the history
Update scale_y_continuous.py
  • Loading branch information
glamp committed Apr 5, 2014
2 parents 9b1cbc8 + 2b6563b commit fb323c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ggplot/scales/scale_y_continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ def __radd__(self, gg):
gg = deepcopy(gg)
if self.name:
gg.ylab = self.name.title()
if self.labels and self.labels in LABEL_FORMATS:
format_func = LABEL_FORMATS[self.labels]
gg.ytick_formatter = FuncFormatter(format_func)
if self.labels:
if self.labels in LABEL_FORMATS:
format_func = LABEL_FORMATS[self.labels]
gg.ytick_formatter = FuncFormatter(format_func)
else:
gg.ytick_labels = self.labels
if self.limits:
gg.ylimits = self.limits
if self.breaks:
Expand Down

0 comments on commit fb323c1

Please sign in to comment.