@@ -2800,7 +2800,7 @@ class PolarAxes(Axes):
28002800 thetagridlines : a list of Line2D for the theta grids
28012801 rgridlines : a list of Line2D for the radial grids
28022802 thetagridlabels : a list of Text for the theta grid labels
2803- rgridlabels : a list of Text for the theta grid labels
2803+ rgridlabels : a list of Text for the theta grid labels
28042804
28052805 """
28062806
@@ -2837,6 +2837,7 @@ def cla(self):
28372837
28382838 self ._gridOn = rcParams ['polaraxes.grid' ]
28392839 self .lines = []
2840+ self .collections = []
28402841 self .texts = [] # text in axis coords
28412842
28422843 self .grid (self ._gridOn )
@@ -2973,6 +2974,8 @@ def draw(self, renderer):
29732974 for t in self .texts :
29742975 t .draw (renderer )
29752976
2977+ for c in self .collections :
2978+ c .draw (renderer )
29762979 self .title .draw (renderer )
29772980 self .transData .thaw () # release the lazy objects
29782981 self .transAxes .thaw () # release the lazy objects
@@ -3013,7 +3016,7 @@ def set_thetagridlabels(self, angles, fmt='%d', frac = 1.1, **kwargs):
30133016 self .thetagridlabels .append (t )
30143017 return self .thetagridlabels
30153018
3016- def set_rgridlabels (self , radii , angle = 67 .5 , ** kwargs ):
3019+ def set_rgridlabels (self , radii , angle = 22 .5 , ** kwargs ):
30173020 """
30183021 Set the radial grid labels at radial distances in radii along
30193022 the radius at angle
@@ -3041,7 +3044,7 @@ def set_rgridlabels(self, radii, angle=67.5, **kwargs):
30413044
30423045 def has_data (self ):
30433046 'return true if any artists have been added to axes'
3044- return len (self .lines )
3047+ return len (self .lines )+ len ( self . collections )
30453048
30463049 def set_xlabel (self , xlabel , fontdict = None , ** kwargs ):
30473050 'xlabel not implemented'
0 commit comments