Skip to content

Commit a0c7bd8

Browse files
committed
Made style changes and edits suggested
Added spacing between colons and made the changes pointed out
1 parent 8e54067 commit a0c7bd8

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,78 +2488,77 @@ def pie(self, x, explode=None, labels=None, colors=None,
24882488
x : array
24892489
The input array used to make the pie chart.
24902490
2491-
explode: None or array
2491+
explode : None or array
24922492
If not *None*, is a ``len(x)`` array which specifies the
24932493
fraction of the radius with which to offset each wedge.
24942494
2495-
colors: None or array
2495+
colors : None or array
24962496
A sequence of matplotlib color args through which the pie chart
24972497
will cycle. If `None`, will use the colors in the currently
24982498
active cycle.
24992499
2500-
labels: None or list
2500+
labels : None or list
25012501
A sequence of strings providing the labels for each wedge
25022502
2503-
autopct: None or string or function
2503+
autopct : None or string or function
25042504
If not *None*, is a string or function used to label the wedges
25052505
with their numeric value. The label will be placed inside the
25062506
wedge. If it is a format string, the label will be ``fmt%pct``.
25072507
If it is a function, it will be called.
25082508
2509-
pctdistance: float
2509+
pctdistance : float
25102510
The ratio between the center of each pie slice and the
25112511
start of the text generated by *autopct*. Ignored if
25122512
*autopct* is *None*; default is 0.6.
25132513
2514-
labeldistance: float
2514+
labeldistance : float
25152515
The radial distance at which the pie labels are drawn
25162516
2517-
shadow: bool
2517+
shadow : bool
25182518
Draw a shadow beneath the pie.
25192519
2520-
startangle: None or Offset angle
2520+
startangle : None or float
25212521
If not *None*, rotates the start of the pie chart by *angle*
25222522
degrees counterclockwise from the x-axis.
25232523
2524-
radius: None or float
2524+
radius : None or float
25252525
The radius of the pie, if *radius* is *None* it will be set to 1.
25262526
2527-
counterclock: bool
2527+
counterclock : bool
25282528
Specify fractions direction, clockwise or counterclockwise.
25292529
2530-
wedgeprops: None or dict
2530+
wedgeprops : None or dict
25312531
Dict of arguments passed to the wedge objects making the pie.
25322532
For example, you can pass in wedgeprops = { 'linewidth' : 3 }
25332533
to set the width of the wedge border lines equal to 3.
25342534
For more details, look at the doc/arguments of the wedge object.
25352535
By default `clip_on=False`.
25362536
2537-
textprops: None or dict
2537+
textprops : None or dict
25382538
Dict of arguments to pass to the text objects.
25392539
2540-
center: list of int
2540+
center : list of float
25412541
Center position of the chart. Takes value (0,0) or is a sequence
25422542
of 2 scalars.
25432543
2544-
frame: bool
2544+
frame : bool
25452545
Plot axes frame with the chart if true.
25462546
2547-
rotatelabels: bool
2547+
rotatelabels : bool
25482548
Rotate each label to the angle of the corresponding slice if true.
25492549
25502550
Returns
25512551
-------
2552-
patches: list
2552+
patches : list
25532553
A sequence of :class:`matplotlib.patches.Wedge` instances
25542554
2555-
texts: list
2555+
texts : list
25562556
A is a list of the label :class:`matplotlib.text.Text` instances.
25572557
2558-
autotexts: list
2558+
autotexts : list
25592559
A is a list of :class:`~matplotlib.text.Text` instances for the
2560-
numeric labels. Is returned only is if parameter *autopct* is
2561-
not *None*. If *autopct* is *None*, the tuple returned
2562-
is (patches, texts).
2560+
numeric labels. Is returned only if parameter *autopct* is
2561+
not *None*.
25632562
25642563
Notes
25652564
--------

0 commit comments

Comments
 (0)