Skip to content

Commit 316dddc

Browse files
authored
Figure.magnetic_rose/Figure.directional_rose: Add missing docstring for 'panel' and fix type hints for 'perspective' (#4575)
1 parent 6762484 commit 316dddc

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

pygmt/src/directional_rose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def directional_rose(
2626
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
2727
| bool = False,
2828
panel: int | Sequence[int] | bool = False,
29-
perspective: str | bool = False,
29+
perspective: float | Sequence[float] | str | bool = False,
3030
transparency: float | None = None,
3131
):
3232
"""

pygmt/src/magnetic_rose.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def magnetic_rose( # noqa: PLR0913
3131
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
3232
| bool = False,
3333
panel: int | Sequence[int] | bool = False,
34-
perspective: str | bool = False,
34+
perspective: float | Sequence[float] | str | bool = False,
3535
transparency: float | None = None,
3636
):
3737
"""
@@ -84,8 +84,9 @@ def magnetic_rose( # noqa: PLR0913
8484
rectangular box is drawn using :gmt-term:`MAP_FRAME_PEN`. To customize the box
8585
appearance, pass a :class:`pygmt.params.Box` object to control style, fill, pen,
8686
and other box properties.
87-
$perspective
8887
$verbose
88+
$panel
89+
$perspective
8990
$transparency
9091
9192
Examples

0 commit comments

Comments
 (0)