9
9
from pygmt .alias import Alias , AliasSystem
10
10
from pygmt .clib import Session
11
11
from pygmt .helpers import build_arg_list
12
+ from pygmt .params import Box
12
13
13
14
14
- def directional_rose (
15
+ def directional_rose ( # noqa: PLR0913
15
16
self ,
16
17
position : Sequence [str | float ] | AnchorCode ,
17
18
position_type : Literal [
@@ -22,6 +23,8 @@ def directional_rose(
22
23
width : float | str | None = None ,
23
24
label : Sequence [str ] | bool = False ,
24
25
fancy : Literal [1 , 2 , 3 ] | bool = False ,
26
+ box : Box | bool = False ,
27
+ perspective : str | bool = False ,
25
28
verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
26
29
| bool = False ,
27
30
transparency : float | None = None ,
@@ -79,6 +82,10 @@ def directional_rose(
79
82
ENE-WSW
80
83
81
84
If set to ``True``, defaults to level 1.
85
+ box
86
+ Draw a background box around the directional rose. If set to ``True``, draw a
87
+ rectangular box using :gmt-term:`MAP_FRAME_PEN`. Otherwise, use a
88
+ :class:`pygmt.params.Box` object for more control over the box.
82
89
{perspective}
83
90
{verbose}
84
91
{transparency}
@@ -94,6 +101,7 @@ def directional_rose(
94
101
self ._activate_figure ()
95
102
96
103
aliasdict = AliasSystem (
104
+ F = Alias (box , name = "box" ),
97
105
Td = [
98
106
Alias (
99
107
position_type ,
@@ -113,6 +121,7 @@ def directional_rose(
113
121
Alias (label , name = "label" , prefix = "+l" , sep = "," , size = 4 ),
114
122
Alias (width , name = "width" , prefix = "+w" ),
115
123
],
124
+ p = Alias (perspective , name = "perspective" ),
116
125
).add_common (
117
126
V = verbose ,
118
127
t = transparency ,
0 commit comments