def thetagrids(*args, **kwargs):
 ax = gca()
 if (not isinstance(ax, PolarAxes)):
  raise RuntimeError(u'rgrids only defined for polar axes')
 if (len(args) == 0):
  lines = ax.xaxis.get_ticklines()
  labels = ax.xaxis.get_ticklabels()
 else:
  (lines, labels) = ax.set_thetagrids(*args, **kwargs)
 return (silent_list(u'Line2D thetagridline', lines), silent_list(u'Text thetagridlabel', labels))

def thetagrids ( * args , ** kwargs ) : ax = gca ( ) if ( not isinstance ( ax , PolarAxes ) ) : raise RuntimeError ( u'rgrids only defined for polar axes' ) if ( len ( args ) == 0 ) : lines = ax . xaxis . get_ticklines ( ) labels = ax . xaxis . get_ticklabels ( ) else : ( lines , labels ) = ax . set_thetagrids ( * args , ** kwargs ) return ( silent_list ( u'Line2D thetagridline' , lines ) , silent_list ( u'Text thetagridlabel' , labels ) )
set/get the theta locations of the gridlines and ticklabels .