1111
1212
1313@fmt_docstring
14- @use_alias (F = "box" , Td = "rose" , Tm = "compass" , f = "coltypes" )
14+ @use_alias (F = "box" , Td = "rose" , f = "coltypes" )
1515def basemap ( # noqa: PLR0913
1616 self ,
1717 projection : str | None = None ,
@@ -20,6 +20,7 @@ def basemap( # noqa: PLR0913
2020 frame : str | Sequence [str ] | bool = False ,
2121 region : Sequence [float | str ] | str | None = None ,
2222 map_scale : str | None = None ,
23+ compass : str | None = None ,
2324 verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
2425 | bool = False ,
2526 panel : int | Sequence [int ] | bool = False ,
@@ -73,6 +74,15 @@ def basemap( # noqa: PLR0913
7374 which provides a more comprehensive and flexible API for adding scale bars
7475 to plots. This parameter still accepts raw GMT CLI strings for the ``-L``
7576 option of the ``basemap`` module for backward compatibility.
77+ compass
78+ Draw a map magnetic rose on the map.
79+
80+ .. deprecated:: v0.19.0
81+
82+ This parameter is deprecated. Use :meth:`pygmt.Figure.magnetic_rose`
83+ instead, which provides a more comprehensive and flexible API for adding
84+ magnetic roses to plots. This parameter still accepts raw GMT CLI strings
85+ for the ``-Tm`` option of the ``basemap`` module for backward compatibility.
7686 box : bool or str
7787 [**+c**\ *clearances*][**+g**\ *fill*][**+i**\ [[*gap*/]\ *pen*]]\
7888 [**+p**\ [*pen*]][**+r**\ [*radius*]][**+s**\ [[*dx*/*dy*/][*shade*]]].
@@ -109,6 +119,7 @@ def basemap( # noqa: PLR0913
109119 Jz = Alias (zscale , name = "zscale" ),
110120 JZ = Alias (zsize , name = "zsize" ),
111121 L = Alias (map_scale , name = "map_scale" ), # Deprecated.
122+ Tm = Alias (compass , name = "compass" ), # Deprecated.
112123 ).add_common (
113124 B = frame ,
114125 J = projection ,
0 commit comments