matplotlib 3.5.1

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

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 theta 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 that is used is in radians.

Returns

lines : list of `.lines.Line2D`

The theta gridlines.

labels : list of `.text.Text`

The tick labels.

Set the theta gridlines in a polar plot.

See Also

.Axis.get_gridlines
.Axis.get_ticklabels
.PolarAxes.set_rgrids

Examples

See :

Back References

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

matplotlib.pyplot.thetagrids matplotlib.projections.polar.PolarAxes.set_rgrids

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/projections/polar.py#1278
type: <class 'function'>
Commit: