matplotlib.pyplot.
thetagrids
(*args, **kwargs)[source]¶Get or set the theta gridlines on the current polar plot.
Call signatures:
lines, labels = thetagrids()
lines, labels = thetagrids(angles, labels=None, fmt=None, **kwargs)
When called with no arguments, thetagrids
simply returns the tuple
(lines, labels). When called with arguments, the labels will
appear at the specified angles.
Parameters: |
|
---|---|
Returns: |
|
Other Parameters: |
|
See also
pyplot.rgrids
, projections.polar.PolarAxes.set_thetagrids
, Axis.get_gridlines
, Axis.get_ticklabels
Examples
# set the locations of the angular gridlines
lines, labels = thetagrids( range(45,360,90) )
# set the locations and labels of the angular gridlines
lines, labels = thetagrids( range(45,360,90), ('NE', 'NW', 'SW','SE') )