MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / rgrids

Function rgrids

site-packages/matplotlib/pyplot.py:1637–1705  ·  view source on GitHub ↗

Get or set the radial gridlines on the current polar plot. 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 c

(*args, **kwargs)

Source from the content-addressed store, hash-verified

1635
1636
1637def rgrids(*args, **kwargs):
1638 """
1639 Get or set the radial gridlines on the current polar plot.
1640
1641 Call signatures::
1642
1643 lines, labels = rgrids()
1644 lines, labels = rgrids(radii, labels=None, angle=22.5, fmt=None, **kwargs)
1645
1646 When called with no arguments, `.rgrids` simply returns the tuple
1647 (*lines*, *labels*). When called with arguments, the labels will
1648 appear at the specified radial distances and angle.
1649
1650 Parameters
1651 ----------
1652 radii : tuple with floats
1653 The radii for the radial gridlines
1654
1655 labels : tuple with strings or None
1656 The labels to use at each radial gridline. The
1657 `matplotlib.ticker.ScalarFormatter` will be used if None.
1658
1659 angle : float
1660 The angular position of the radius labels in degrees.
1661
1662 fmt : str or None
1663 Format string used in `matplotlib.ticker.FormatStrFormatter`.
1664 For example '%f'.
1665
1666 Returns
1667 -------
1668 lines, labels : list of `.lines.Line2D`, list of `.text.Text`
1669 *lines* are the radial gridlines and *labels* are the tick labels.
1670
1671 Other Parameters
1672 ----------------
1673 **kwargs
1674 *kwargs* are optional `~.Text` properties for the labels.
1675
1676 Examples
1677 --------
1678 ::
1679
1680 # set the locations of the radial gridlines
1681 lines, labels = rgrids( (0.25, 0.5, 1.0) )
1682
1683 # set the locations and labels of the radial gridlines
1684 lines, labels = rgrids( (0.25, 0.5, 1.0), ('Tom', 'Dick', 'Harry' ))
1685
1686 See Also
1687 --------
1688 .pyplot.thetagrids
1689 .projections.polar.PolarAxes.set_rgrids
1690 .Axis.get_gridlines
1691 .Axis.get_ticklabels
1692
1693
1694 """

Callers

nothing calls this directly

Calls 5

silent_listClass · 0.90
gcaFunction · 0.85
get_ticklabelsMethod · 0.80
set_rgridsMethod · 0.80
get_gridlinesMethod · 0.45

Tested by

no test coverage detected