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.
The angles of the theta gridlines.
The labels to use at each radial gridline. The projections.polar.ThetaFormatter
will be used if None.
Format string used in matplotlib.ticker.FormatStrFormatter
. For example '%f'. Note that the angle in radians will be used.
lines.Line2D
The theta gridlines.
text.Text
The tick labels.
kwargs are optional Text
properties for the labels.
See also
# 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'))
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.pyplot.thetagrids.html