@@ -2517,30 +2517,32 @@ def pie(self, x, explode=None, labels=None, colors=None,
2517
2517
startangle = None , radius = None , counterclock = True ,
2518
2518
wedgeprops = None , textprops = None , center = (0 , 0 ),
2519
2519
frame = False , rotatelabels = False ):
2520
- r """
2520
+ """
2521
2521
Plot a pie chart.
2522
2522
2523
- Make a pie chart of array *x*. The fractional area of each
2524
- wedge is given by ``x/sum(x)``. If ``sum(x) <= 1``, then the
2525
- values of x give the fractional area directly and the array
2526
- will not be normalized. The wedges are plotted
2527
- counterclockwise, by default starting from the x-axis.
2523
+ Make a pie chart of array *x*. The fractional area of each wedge is
2524
+ given by ``x/sum(x)``. If ``sum(x) < 1``, then the values of *x* give
2525
+ the fractional area directly and the array will not be normalized. The
2526
+ resulting pie will have an empty wedge of size ``1 - sum(x)``.
2527
+
2528
+ The wedges are plotted counterclockwise, by default starting from the
2529
+ x-axis.
2528
2530
2529
2531
Parameters
2530
2532
----------
2531
2533
x : array-like
2532
- The input array used to make the pie chart .
2534
+ The wedge sizes .
2533
2535
2534
2536
explode : array-like, optional, default: None
2535
- If not *None*, is a ``len(x)`` array which specifies the
2536
- fraction of the radius with which to offset each wedge.
2537
+ If not *None*, is a ``len(x)`` array which specifies the fraction
2538
+ of the radius with which to offset each wedge.
2537
2539
2538
2540
labels : list, optional, default: None
2539
2541
A sequence of strings providing the labels for each wedge
2540
2542
2541
2543
colors : array-like, optional, default: None
2542
2544
A sequence of matplotlib color args through which the pie chart
2543
- will cycle. If ` None` , will use the colors in the currently
2545
+ will cycle. If * None* , will use the colors in the currently
2544
2546
active cycle.
2545
2547
2546
2548
autopct : None (default), string, or function, optional
@@ -2550,9 +2552,8 @@ def pie(self, x, explode=None, labels=None, colors=None,
2550
2552
If it is a function, it will be called.
2551
2553
2552
2554
pctdistance : float, optional, default: 0.6
2553
- The ratio between the center of each pie slice and the
2554
- start of the text generated by *autopct*. Ignored if
2555
- *autopct* is *None*.
2555
+ The ratio between the center of each pie slice and the start of
2556
+ the text generated by *autopct*. Ignored if *autopct* is *None*.
2556
2557
2557
2558
shadow : bool, optional, default: False
2558
2559
Draw a shadow beneath the pie.
@@ -2572,7 +2573,7 @@ def pie(self, x, explode=None, labels=None, colors=None,
2572
2573
2573
2574
wedgeprops : dict, optional, default: None
2574
2575
Dict of arguments passed to the wedge objects making the pie.
2575
- For example, you can pass in``wedgeprops = {'linewidth': 3}``
2576
+ For example, you can pass in ``wedgeprops = {'linewidth': 3}``
2576
2577
to set the width of the wedge border lines equal to 3.
2577
2578
For more details, look at the doc/arguments of the wedge object.
2578
2579
By default ``clip_on=False``.
@@ -2581,8 +2582,8 @@ def pie(self, x, explode=None, labels=None, colors=None,
2581
2582
Dict of arguments to pass to the text objects.
2582
2583
2583
2584
center : list of float, optional, default: (0, 0)
2584
- Center position of the chart. Takes value (0, 0) or is a
2585
- sequence of 2 scalars.
2585
+ Center position of the chart. Takes value (0, 0) or is a sequence
2586
+ of 2 scalars.
2586
2587
2587
2588
frame : bool, optional, default: False
2588
2589
Plot axes frame with the chart if true.
@@ -2596,11 +2597,11 @@ def pie(self, x, explode=None, labels=None, colors=None,
2596
2597
A sequence of :class:`matplotlib.patches.Wedge` instances
2597
2598
2598
2599
texts : list
2599
- A is a list of the label :class:`matplotlib.text.Text` instances.
2600
+ A list of the label :class:`matplotlib.text.Text` instances.
2600
2601
2601
2602
autotexts : list
2602
- A is a list of :class:`~matplotlib.text.Text` instances for the
2603
- numeric labels. Is returned only if parameter *autopct* is
2603
+ A list of :class:`~matplotlib.text.Text` instances for the numeric
2604
+ labels. This will only be returned if the parameter *autopct* is
2604
2605
not *None*.
2605
2606
2606
2607
Notes
0 commit comments