@@ -2462,30 +2462,32 @@ def pie(self, x, explode=None, labels=None, colors=None,
2462
2462
startangle = None , radius = None , counterclock = True ,
2463
2463
wedgeprops = None , textprops = None , center = (0 , 0 ),
2464
2464
frame = False , rotatelabels = False ):
2465
- r """
2465
+ """
2466
2466
Plot a pie chart.
2467
2467
2468
- Make a pie chart of array *x*. The fractional area of each
2469
- wedge is given by ``x/sum(x)``. If ``sum(x) <= 1``, then the
2470
- values of x give the fractional area directly and the array
2471
- will not be normalized. The wedges are plotted
2472
- counterclockwise, by default starting from the x-axis.
2468
+ Make a pie chart of array *x*. The fractional area of each wedge is
2469
+ given by ``x/sum(x)``. If ``sum(x) < 1``, then the values of *x* give
2470
+ the fractional area directly and the array will not be normalized. The
2471
+ resulting pie will have an empty wedge of size ``1 - sum(x)``.
2472
+
2473
+ The wedges are plotted counterclockwise, by default starting from the
2474
+ x-axis.
2473
2475
2474
2476
Parameters
2475
2477
----------
2476
2478
x : array-like
2477
- The input array used to make the pie chart .
2479
+ The wedge sizes .
2478
2480
2479
2481
explode : array-like, optional, default: None
2480
- If not *None*, is a ``len(x)`` array which specifies the
2481
- fraction of the radius with which to offset each wedge.
2482
+ If not *None*, is a ``len(x)`` array which specifies the fraction
2483
+ of the radius with which to offset each wedge.
2482
2484
2483
2485
labels : list, optional, default: None
2484
2486
A sequence of strings providing the labels for each wedge
2485
2487
2486
2488
colors : array-like, optional, default: None
2487
2489
A sequence of matplotlib color args through which the pie chart
2488
- will cycle. If ` None` , will use the colors in the currently
2490
+ will cycle. If * None* , will use the colors in the currently
2489
2491
active cycle.
2490
2492
2491
2493
autopct : None (default), string, or function, optional
@@ -2495,9 +2497,8 @@ def pie(self, x, explode=None, labels=None, colors=None,
2495
2497
If it is a function, it will be called.
2496
2498
2497
2499
pctdistance : float, optional, default: 0.6
2498
- The ratio between the center of each pie slice and the
2499
- start of the text generated by *autopct*. Ignored if
2500
- *autopct* is *None*.
2500
+ The ratio between the center of each pie slice and the start of
2501
+ the text generated by *autopct*. Ignored if *autopct* is *None*.
2501
2502
2502
2503
shadow : bool, optional, default: False
2503
2504
Draw a shadow beneath the pie.
@@ -2517,7 +2518,7 @@ def pie(self, x, explode=None, labels=None, colors=None,
2517
2518
2518
2519
wedgeprops : dict, optional, default: None
2519
2520
Dict of arguments passed to the wedge objects making the pie.
2520
- For example, you can pass in``wedgeprops = {'linewidth': 3}``
2521
+ For example, you can pass in ``wedgeprops = {'linewidth': 3}``
2521
2522
to set the width of the wedge border lines equal to 3.
2522
2523
For more details, look at the doc/arguments of the wedge object.
2523
2524
By default ``clip_on=False``.
@@ -2526,8 +2527,8 @@ def pie(self, x, explode=None, labels=None, colors=None,
2526
2527
Dict of arguments to pass to the text objects.
2527
2528
2528
2529
center : list of float, optional, default: (0, 0)
2529
- Center position of the chart. Takes value (0, 0) or is a
2530
- sequence of 2 scalars.
2530
+ Center position of the chart. Takes value (0, 0) or is a sequence
2531
+ of 2 scalars.
2531
2532
2532
2533
frame : bool, optional, default: False
2533
2534
Plot axes frame with the chart if true.
@@ -2541,11 +2542,11 @@ def pie(self, x, explode=None, labels=None, colors=None,
2541
2542
A sequence of :class:`matplotlib.patches.Wedge` instances
2542
2543
2543
2544
texts : list
2544
- A is a list of the label :class:`matplotlib.text.Text` instances.
2545
+ A list of the label :class:`matplotlib.text.Text` instances.
2545
2546
2546
2547
autotexts : list
2547
- A is a list of :class:`~matplotlib.text.Text` instances for the
2548
- numeric labels. Is returned only if parameter *autopct* is
2548
+ A list of :class:`~matplotlib.text.Text` instances for the numeric
2549
+ labels. This will only be returned if the parameter *autopct* is
2549
2550
not *None*.
2550
2551
2551
2552
Notes
@@ -4648,34 +4649,35 @@ def fill(self, *args, **kwargs):
4648
4649
4649
4650
Parameters
4650
4651
----------
4651
- args : a variable length argument
4652
- It allowing for multiple
4653
- *x*, *y* pairs with an optional color format string; see
4654
- :func:`~matplotlib.pyplot.plot` for details on the argument
4655
- parsing. For example, each of the following is legal::
4652
+ args : sequence of x, y, [color]
4653
+ Each polygon is defined by the lists of *x* and *y* positions of
4654
+ its nodes, optionally followed by by a *color* specifier. See
4655
+ :mod:`matplotlib.colors` for supported color specifiers. The
4656
+ standard color cycle is used for polygons without a color
4657
+ specifier.
4656
4658
4657
- ax.fill(x, y)
4658
- ax.fill(x, y, "b")
4659
- ax.fill(x, y, "b", x, y, "r")
4659
+ You can plot multiple polygons by providing multiple *x*, *y*,
4660
+ *[color]* groups.
4660
4661
4661
- An arbitrary number of *x*, *y*, *color* groups can be specified::
4662
- ax.fill(x1, y1, 'g', x2, y2, 'r')
4662
+ For example, each of the following is legal::
4663
+
4664
+ ax.fill(x, y) # a polygon with default color
4665
+ ax.fill(x, y, "b") # a blue polygon
4666
+ ax.fill(x, y, x2, y2) # two polygons
4667
+ ax.fill(x, y, "b", x2, y2, "r") # a blue and a red polygon
4663
4668
4664
4669
Returns
4665
4670
-------
4666
- a list of :class:`~matplotlib.patches.Patch `
4671
+ a list of :class:`~matplotlib.patches.Polygon `
4667
4672
4668
4673
Other Parameters
4669
4674
----------------
4670
4675
**kwargs : :class:`~matplotlib.patches.Polygon` properties
4671
4676
4672
4677
Notes
4673
4678
-----
4674
- The same color strings that :func:`~matplotlib.pyplot.plot`
4675
- supports are supported by the fill format string.
4676
-
4677
- If you would like to fill below a curve, e.g., shade a region
4678
- between 0 and *y* along *x*, use :meth:`fill_between`
4679
+ Use :meth:`fill_between` if you would like to fill the region between
4680
+ two curves.
4679
4681
4680
4682
4681
4683
"""
0 commit comments