Skip to content

Commit

Permalink
fix style restriction failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fat-crocodile committed Mar 13, 2014
1 parent a6bbc3c commit bc60879
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/matplotlib/axes/_axes.py
Expand Up @@ -2339,8 +2339,8 @@ def stem(self, *args, **kwargs):
return stem_container return stem_container


def pie(self, x, explode=None, labels=None, colors=None, def pie(self, x, explode=None, labels=None, colors=None,
autopct=None, pctdistance=0.6, shadow=False, autopct=None, pctdistance=0.6, shadow=False, labeldistance=1.1,
labeldistance=1.1, startangle=None, radius=None, counterclock=True): startangle=None, radius=None, counterclock=True):
r""" r"""
Plot a pie chart. Plot a pie chart.
Expand Down Expand Up @@ -2395,7 +2395,7 @@ def pie(self, x, explode=None, labels=None, colors=None,
The radius of the pie, if *radius* is *None* it will be set to 1. The radius of the pie, if *radius* is *None* it will be set to 1.
*counterclock*: [ *False* | *True* ] *counterclock*: [ *False* | *True* ]
Specify fractions direction, clockwise or counterclockwise. Specify fractions direction, clockwise or counterclockwise.
The pie chart will probably look best if the figure and axes are The pie chart will probably look best if the figure and axes are
square, or the Axes aspect is equal. e.g.:: square, or the Axes aspect is equal. e.g.::
Expand Down Expand Up @@ -2461,8 +2461,9 @@ def pie(self, x, explode=None, labels=None, colors=None,
x += expl * math.cos(thetam) x += expl * math.cos(thetam)
y += expl * math.sin(thetam) y += expl * math.sin(thetam)


w = mpatches.Wedge((x, y), radius, 360. * min(theta1, theta2), 360. * max(theta1, theta2), w = mpatches.Wedge((x, y), radius, 360. * min(theta1, theta2),
facecolor=colors[i % len(colors)]) 360. * max(theta1, theta2),
facecolor=colors[i % len(colors)])
slices.append(w) slices.append(w)
self.add_patch(w) self.add_patch(w)
w.set_label(label) w.set_label(label)
Expand Down

0 comments on commit bc60879

Please sign in to comment.