def rgrids(*args, **kwargs):
 ax = gca()
 if (not isinstance(ax, PolarAxes)):
  raise RuntimeError(u'rgrids only defined for polar axes')
 if (len(args) == 0):
  lines = ax.yaxis.get_gridlines()
  labels = ax.yaxis.get_ticklabels()
 else:
  (lines, labels) = ax.set_rgrids(*args, **kwargs)
 return (silent_list(u'Line2D rgridline', lines), silent_list(u'Text rgridlabel', labels))

def rgrids ( * args , ** kwargs ) : ax = gca ( ) if ( not isinstance ( ax , PolarAxes ) ) : raise RuntimeError ( u'rgrids only defined for polar axes' ) if ( len ( args ) == 0 ) : lines = ax . yaxis . get_gridlines ( ) labels = ax . yaxis . get_ticklabels ( ) else : ( lines , labels ) = ax . set_rgrids ( * args , ** kwargs ) return ( silent_list ( u'Line2D rgridline' , lines ) , silent_list ( u'Text rgridlabel' , labels ) )
set/get the radial locations of the gridlines and ticklabels on a polar plot .