def set_thetagrids(self, angles, labels=None, frac=None,<EOL>**kwargs):
angles = npy.asarray(angles, npy.float_)<EOL>self.set_xticks(angles * (npy.pi / <NUM_LIT>))<EOL>if labels is not None:<EOL><INDENT>self.set_xticklabels(labels)<EOL><DEDENT>if frac is not None:<EOL><INDENT>self._theta_label1_position.clear().translate(<NUM_LIT:0.0>, frac)<EOL>self._theta_label2_position.clear().translate(<NUM_LIT:0.0>, <NUM_LIT:1.0> / frac)<EOL><DEDENT>for t in self.xaxis.get_ticklabels():<EOL><INDENT>t.update(kwargs)<EOL><DEDENT>return self.xaxis.get_ticklines(), self.xaxis.get_ticklabels()<EOL>
Set the angles at which to place the theta grids (these
gridlines are equal along the theta dimension).  *angles* is in
degrees.

*labels*, if not None, is a ``len(angles)`` list of strings of
the labels to use at each angle.

If *labels* is None, the labels will be ``fmt %% angle``

*frac* is the fraction of the polar axes radius at which to
place the label (1 is the edge). Eg. 1.05 is outside the axes
and 0.95 is inside the axes.

Return value is a list of tuples (*line*, *label*), where
*line* is :class:`~matplotlib.lines.Line2D` instances and the
*label* is :class:`~matplotlib.text.Text` instances.

kwargs are optional text properties for the labels:

%(Text)s

ACCEPTS: sequence of floats