@@ -2800,7 +2800,7 @@ class PolarAxes(Axes):
2800
2800
thetagridlines : a list of Line2D for the theta grids
2801
2801
rgridlines : a list of Line2D for the radial grids
2802
2802
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
2804
2804
2805
2805
"""
2806
2806
@@ -2837,6 +2837,7 @@ def cla(self):
2837
2837
2838
2838
self ._gridOn = rcParams ['polaraxes.grid' ]
2839
2839
self .lines = []
2840
+ self .collections = []
2840
2841
self .texts = [] # text in axis coords
2841
2842
2842
2843
self .grid (self ._gridOn )
@@ -2973,6 +2974,8 @@ def draw(self, renderer):
2973
2974
for t in self .texts :
2974
2975
t .draw (renderer )
2975
2976
2977
+ for c in self .collections :
2978
+ c .draw (renderer )
2976
2979
self .title .draw (renderer )
2977
2980
self .transData .thaw () # release the lazy objects
2978
2981
self .transAxes .thaw () # release the lazy objects
@@ -3013,7 +3016,7 @@ def set_thetagridlabels(self, angles, fmt='%d', frac = 1.1, **kwargs):
3013
3016
self .thetagridlabels .append (t )
3014
3017
return self .thetagridlabels
3015
3018
3016
- def set_rgridlabels (self , radii , angle = 67 .5 , ** kwargs ):
3019
+ def set_rgridlabels (self , radii , angle = 22 .5 , ** kwargs ):
3017
3020
"""
3018
3021
Set the radial grid labels at radial distances in radii along
3019
3022
the radius at angle
@@ -3041,7 +3044,7 @@ def set_rgridlabels(self, radii, angle=67.5, **kwargs):
3041
3044
3042
3045
def has_data (self ):
3043
3046
'return true if any artists have been added to axes'
3044
- return len (self .lines )
3047
+ return len (self .lines )+ len ( self . collections )
3045
3048
3046
3049
def set_xlabel (self , xlabel , fontdict = None , ** kwargs ):
3047
3050
'xlabel not implemented'
0 commit comments