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
(
radii: ArrayLike | None = None,
labels: Sequence[str | Text] | None = None,
angle: float | None = None,
fmt: str | None = None,
**kwargs
)
| 2483 | |
| 2484 | |
| 2485 | def rgrids( |
| 2486 | radii: ArrayLike | None = None, |
| 2487 | labels: Sequence[str | Text] | None = None, |
| 2488 | angle: float | None = None, |
| 2489 | fmt: str | None = None, |
| 2490 | **kwargs |
| 2491 | ) -> tuple[list[Line2D], list[Text]]: |
| 2492 | """ |
| 2493 | Get or set the radial gridlines on the current polar plot. |
| 2494 | |
| 2495 | Call signatures:: |
| 2496 | |
| 2497 | lines, labels = rgrids() |
| 2498 | lines, labels = rgrids(radii, labels=None, angle=22.5, fmt=None, **kwargs) |
| 2499 | |
| 2500 | When called with no arguments, `.rgrids` simply returns the tuple |
| 2501 | (*lines*, *labels*). When called with arguments, the labels will |
| 2502 | appear at the specified radial distances and angle. |
| 2503 | |
| 2504 | Parameters |
| 2505 | ---------- |
| 2506 | radii : tuple with floats |
| 2507 | The radii for the radial gridlines |
| 2508 | |
| 2509 | labels : tuple with strings or None |
| 2510 | The labels to use at each radial gridline. The |
| 2511 | `matplotlib.ticker.ScalarFormatter` will be used if None. |
| 2512 | |
| 2513 | angle : float |
| 2514 | The angular position of the radius labels in degrees. |
| 2515 | |
| 2516 | fmt : str or None |
| 2517 | Format string used in `matplotlib.ticker.FormatStrFormatter`. |
| 2518 | For example '%f'. |
| 2519 | |
| 2520 | Returns |
| 2521 | ------- |
| 2522 | lines : list of `.lines.Line2D` |
| 2523 | The radial gridlines. |
| 2524 | |
| 2525 | labels : list of `.text.Text` |
| 2526 | The tick labels. |
| 2527 | |
| 2528 | Other Parameters |
| 2529 | ---------------- |
| 2530 | **kwargs |
| 2531 | *kwargs* are optional `.Text` properties for the labels. |
| 2532 | |
| 2533 | See Also |
| 2534 | -------- |
| 2535 | .pyplot.thetagrids |
| 2536 | .projections.polar.PolarAxes.set_rgrids |
| 2537 | .Axis.get_gridlines |
| 2538 | .Axis.get_ticklabels |
| 2539 | |
| 2540 | Examples |
| 2541 | -------- |
| 2542 | :: |
nothing calls this directly
no test coverage detected
searching dependent graphs…