matplotlib 3.5.1

Other ParametersParametersReturnsBackRef
thetagrids(angles=None, labels=None, fmt=None, **kwargs)

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.

Other Parameters

**kwargs :

kwargs are optional :None:None:`.Text` properties for the labels.

Parameters

angles : tuple with floats, degrees

The angles of the theta gridlines.

labels : tuple with strings or None

The labels to use at each radial gridline. The .projections.polar.ThetaFormatter will be used if None.

fmt : str or None

Format string used in matplotlib.ticker.FormatStrFormatter . For example '%f'. Note that the angle in radians will be used.

Returns

lines : list of `.lines.Line2D`

The theta gridlines.

labels : list of `.text.Text`

The tick labels.

Get or set the theta gridlines on the current polar plot.

See Also

.Axis.get_gridlines
.Axis.get_ticklabels
.projections.polar.PolarAxes.set_thetagrids
.pyplot.rgrids

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'))

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.pyplot.rgrids matplotlib.pyplot.thetagrids matplotlib.pyplot.plotting

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/pyplot.py#1931
type: <class 'function'>
Commit: