|
5 | 5 | from typing import Literal
|
6 | 6 |
|
7 | 7 | from pygmt._typing import PathLike, TableLike
|
8 |
| -from pygmt.alias import AliasSystem |
| 8 | +from pygmt.alias import Alias, AliasSystem |
9 | 9 | from pygmt.clib import Session
|
10 | 10 | from pygmt.exceptions import GMTInvalidInput, GMTTypeError
|
11 | 11 | from pygmt.helpers import (
|
|
21 | 21 |
|
22 | 22 | @fmt_docstring
|
23 | 23 | @use_alias(
|
24 |
| - A="straight_line", |
25 | 24 | B="frame",
|
26 | 25 | C="cmap",
|
27 | 26 | D="offset",
|
@@ -59,7 +58,7 @@ def plot3d( # noqa: PLR0912, PLR0913
|
59 | 58 | size=None,
|
60 | 59 | symbol=None,
|
61 | 60 | direction=None,
|
62 |
| - straight_line: bool | Literal["x", "y"] = False, # noqa: ARG001 |
| 61 | + straight_line: bool | Literal["x", "y"] = False, |
63 | 62 | projection=None,
|
64 | 63 | verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
|
65 | 64 | | bool = False,
|
@@ -90,6 +89,7 @@ def plot3d( # noqa: PLR0912, PLR0913
|
90 | 89 | Full GMT docs at :gmt-docs:`plot3d.html`.
|
91 | 90 |
|
92 | 91 | {aliases}
|
| 92 | + - A = straight_line |
93 | 93 | - J = projection
|
94 | 94 | - V = verbose
|
95 | 95 | - c = panel
|
@@ -265,7 +265,9 @@ def plot3d( # noqa: PLR0912, PLR0913
|
265 | 265 | if kwargs.get("S") is None and _data_geometry_is_point(data, kind):
|
266 | 266 | kwargs["S"] = "u0.2c"
|
267 | 267 |
|
268 |
| - aliasdict = AliasSystem().add_common( |
| 268 | + aliasdict = AliasSystem( |
| 269 | + A=Alias(straight_line, name="straight_line"), |
| 270 | + ).add_common( |
269 | 271 | J=projection,
|
270 | 272 | V=verbose,
|
271 | 273 | c=panel,
|
|
0 commit comments