Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc60879

Browse files
committed
fix style restriction failure
1 parent a6bbc3c commit bc60879

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,8 +2339,8 @@ def stem(self, *args, **kwargs):
23392339
return stem_container
23402340

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

2464-
w = mpatches.Wedge((x, y), radius, 360. * min(theta1, theta2), 360. * max(theta1, theta2),
2465-
facecolor=colors[i % len(colors)])
2464+
w = mpatches.Wedge((x, y), radius, 360. * min(theta1, theta2),
2465+
360. * max(theta1, theta2),
2466+
facecolor=colors[i % len(colors)])
24662467
slices.append(w)
24672468
self.add_patch(w)
24682469
w.set_label(label)

0 commit comments

Comments
 (0)