@@ -15,7 +15,11 @@ def directional_rose( # noqa: PLR0913
15
15
self ,
16
16
position : Sequence [str | float ] | AnchorCode ,
17
17
position_type : Literal [
18
- "mapcoords" , "inside" , "outside" , "boxcoords" , "plotcoords"
18
+ "mapcoords" ,
19
+ "boxcoords" ,
20
+ "plotcoords" ,
21
+ "inside" ,
22
+ "outside" ,
19
23
] = "mapcoords" ,
20
24
width : float | str | None = None ,
21
25
justify : AnchorCode | None = None ,
@@ -33,21 +37,22 @@ def directional_rose( # noqa: PLR0913
33
37
Parameters
34
38
----------
35
39
position/position_type
36
- Location of the rose. The actual meaning of this parameter depends on the
37
- ``position_type`` parameter.
40
+ Location of the directional rose. The actual meaning of this parameter depends
41
+ on the ``position_type`` parameter.
38
42
39
43
- ``position_type="mapcoords"``: *position* is given as (x, y) in user
40
44
coordinates.
41
45
- ``position_type="boxcoords"``: *position* is given as (nx, ny) in normalized
42
46
coordinates, where (0, 0) is the lower-left corner and (1, 1) is the
43
- upper-right corner of the map .
47
+ upper-right corner of the plot .
44
48
- ``position_type="plotcoords"``: *position* is given as (x, y) in plot
45
- coordinates.
49
+ coordinates, i.e., the distances in inches, centimeters, or points from the
50
+ lower left plot origin.
46
51
- ``position_type="inside"``: *position* is given as a two-character
47
- justification code, meaning the anchor point of the rose is inside the map
52
+ justification code, meaning the anchor point of the rose is inside the plot
48
53
bounding box.
49
54
- ``position_type="outside"``: *position* is given as a two-character
50
- justification code, but the rose is outside the map bounding box.
55
+ justification code, but the rose is outside the plot bounding box.
51
56
width
52
57
Width of the rose in plot coordinates (append **i** (inch),
53
58
**cm** (centimeters), or **p** (points)), or append % for a size in percentage
@@ -92,10 +97,10 @@ def directional_rose( # noqa: PLR0913
92
97
name = "position_type" ,
93
98
mapping = {
94
99
"mapcoords" : "g" ,
95
- "inside" : "j" ,
96
- "outside" : "J" ,
97
100
"boxcoords" : "n" ,
98
101
"plotcoords" : "x" ,
102
+ "inside" : "j" ,
103
+ "outside" : "J" ,
99
104
},
100
105
),
101
106
Alias (position , name = "position" , sep = "/" , size = 2 ),
0 commit comments