matplotlib 3.5.1

Other ParametersParametersReturnsBackRef
rgrids(radii=None, labels=None, angle=None, fmt=None, **kwargs)

Call signatures:

lines, labels = rgrids()
lines, labels = rgrids(radii, labels=None, angle=22.5, fmt=None, **kwargs)

When called with no arguments, .rgrids simply returns the tuple (lines, labels). When called with arguments, the labels will appear at the specified radial distances and angle.

Other Parameters

**kwargs :

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

Parameters

radii : tuple with floats

The radii for the radial gridlines

labels : tuple with strings or None

The labels to use at each radial gridline. The matplotlib.ticker.ScalarFormatter will be used if None.

angle : float

The angular position of the radius labels in degrees.

fmt : str or None

Format string used in matplotlib.ticker.FormatStrFormatter . For example '%f'.

Returns

lines : list of `.lines.Line2D`

The radial gridlines.

labels : list of `.text.Text`

The tick labels.

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

See Also

.Axis.get_gridlines
.Axis.get_ticklabels
.projections.polar.PolarAxes.set_rgrids
.pyplot.thetagrids

Examples

# set the locations of the radial gridlines lines, labels = rgrids( (0.25, 0.5, 1.0) )

# set the locations and labels of the radial gridlines lines, labels = rgrids( (0.25, 0.5, 1.0), ('Tom', 'Dick', 'Harry' ))

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#1860
type: <class 'function'>
Commit: