@@ -2475,7 +2475,8 @@ def pie(self, x, explode=None, labels=None, colors=None,
2475
2475
startangle = None , radius = None , counterclock = True ,
2476
2476
wedgeprops = None , textprops = None , center = (0 , 0 ),
2477
2477
frame = False , rotatelabels = False ):
2478
- r"""Plot a pie chart.
2478
+ r"""
2479
+ Plot a pie chart.
2479
2480
2480
2481
Make a pie chart of array *x*. The fractional area of each
2481
2482
wedge is given by ``x/sum(x)``. If ``sum(x) <= 1``, then the
@@ -2488,14 +2489,14 @@ def pie(self, x, explode=None, labels=None, colors=None,
2488
2489
x : array-like
2489
2490
The input array used to make the pie chart.
2490
2491
2491
- explode : array-like, optional ( default is None)
2492
+ explode : array-like, optional, default: None
2492
2493
If not *None*, is a ``len(x)`` array which specifies the
2493
2494
fraction of the radius with which to offset each wedge.
2494
2495
2495
- labels : list, optional ( default is None)
2496
+ labels : list, optional, default: None
2496
2497
A sequence of strings providing the labels for each wedge
2497
2498
2498
- colors : array-like, optional ( default is None)
2499
+ colors : array-like, optional, default: None
2499
2500
A sequence of matplotlib color args through which the pie chart
2500
2501
will cycle. If `None`, will use the colors in the currently
2501
2502
active cycle.
@@ -2506,45 +2507,45 @@ def pie(self, x, explode=None, labels=None, colors=None,
2506
2507
wedge. If it is a format string, the label will be ``fmt%pct``.
2507
2508
If it is a function, it will be called.
2508
2509
2509
- pctdistance : float, optional ( default is 0.6)
2510
+ pctdistance : float, optional, default: 0.6
2510
2511
The ratio between the center of each pie slice and the
2511
2512
start of the text generated by *autopct*. Ignored if
2512
- *autopct* is *None*; default is 0.6 .
2513
+ *autopct* is *None*.
2513
2514
2514
- shadow : bool, optional ( default is False)
2515
+ shadow : bool, optional, default: False
2515
2516
Draw a shadow beneath the pie.
2516
2517
2517
- labeldistance : float, optional ( default is 1.1)
2518
+ labeldistance : float, optional, default: 1.1
2518
2519
The radial distance at which the pie labels are drawn
2519
2520
2520
- startangle : float, optional ( default is None)
2521
+ startangle : float, optional, default: None
2521
2522
If not *None*, rotates the start of the pie chart by *angle*
2522
2523
degrees counterclockwise from the x-axis.
2523
2524
2524
- radius : float, optional ( default is None)
2525
+ radius : float, optional, default: None
2525
2526
The radius of the pie, if *radius* is *None* it will be set to 1.
2526
2527
2527
- counterclock : bool, optional ( default is True)
2528
+ counterclock : bool, optional, default: True
2528
2529
Specify fractions direction, clockwise or counterclockwise.
2529
2530
2530
- wedgeprops : dict, optional ( default is None)
2531
+ wedgeprops : dict, optional, default: None
2531
2532
Dict of arguments passed to the wedge objects making the pie.
2532
2533
For example, you can pass in``wedgeprops = {'linewidth': 3}``
2533
2534
to set the width of the wedge border lines equal to 3.
2534
2535
For more details, look at the doc/arguments of the wedge object.
2535
2536
By default ``clip_on=False``.
2536
2537
2537
- textprops : dict, optional ( default is None)
2538
+ textprops : dict, optional, default: None
2538
2539
Dict of arguments to pass to the text objects.
2539
2540
2540
- center : list of float, optional ( default is (0, 0) )
2541
+ center : list of float, optional, default: (0, 0)
2541
2542
Center position of the chart. Takes value (0, 0) or is a
2542
2543
sequence of 2 scalars.
2543
2544
2544
- frame : bool, optional ( default is False)
2545
+ frame : bool, optional, default: False
2545
2546
Plot axes frame with the chart if true.
2546
2547
2547
- rotatelabels : bool, optional ( default is False)
2548
+ rotatelabels : bool, optional, default: False
2548
2549
Rotate each label to the angle of the corresponding slice if true.
2549
2550
2550
2551
Returns
@@ -2558,7 +2559,7 @@ def pie(self, x, explode=None, labels=None, colors=None,
2558
2559
autotexts : list
2559
2560
A is a list of :class:`~matplotlib.text.Text` instances for the
2560
2561
numeric labels. Is returned only if parameter *autopct* is
2561
- not *None*.
2562
+ not *None*.
2562
2563
2563
2564
Notes
2564
2565
-----
@@ -2684,9 +2685,9 @@ def get_next_color():
2684
2685
self .set_frame_on (False )
2685
2686
2686
2687
self .set_xlim ((- 1.25 + center [0 ],
2687
- 1.25 + center [0 ]))
2688
+ 1.25 + center [0 ]))
2688
2689
self .set_ylim ((- 1.25 + center [1 ],
2689
- 1.25 + center [1 ]))
2690
+ 1.25 + center [1 ]))
2690
2691
self .set_xticks ([])
2691
2692
self .set_yticks ([])
2692
2693
0 commit comments