@@ -5005,13 +5005,14 @@ def stem(self, x, y, linefmt='b-', markerfmt='bo', basefmt='r-',
50055005
50065006 def pie (self , x , explode = None , labels = None , colors = None ,
50075007 autopct = None , pctdistance = 0.6 , shadow = False ,
5008- labeldistance = 1.1 ):
5008+ labeldistance = 1.1 , radius = None ):
50095009 r"""
50105010 Call signature::
50115011
50125012 pie(x, explode=None, labels=None,
50135013 colors=('b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'),
5014- autopct=None, pctdistance=0.6, labeldistance=1.1, shadow=False)
5014+ autopct=None, pctdistance=0.6, labeldistance=1.1, shadow=False,
5015+ radius=None)
50155016
50165017 Make a pie chart of array *x*. The fractional area of each
50175018 wedge is given by x/sum(x). If sum(x) <= 1, then the values
@@ -5048,6 +5049,9 @@ def pie(self, x, explode=None, labels=None, colors=None,
50485049 *shadow*: [ *False* | *True* ]
50495050 Draw a shadow beneath the pie.
50505051
5052+ *radius*: [ *None* | scalar ]
5053+ The radius of the pie, if *radius* is *None* it will be set to 1.
5054+
50515055 The pie chart will probably look best if the figure and axes are
50525056 square. Eg.::
50535057
@@ -5084,7 +5088,7 @@ def pie(self, x, explode=None, labels=None, colors=None,
50845088
50855089
50865090 center = 0 ,0
5087- radius = 1
5091+ if radius is None : radius = 1
50885092 theta1 = 0
50895093 i = 0
50905094 texts = []
0 commit comments