77
88import xarray as xr
99from pygmt ._typing import PathLike
10- from pygmt .alias import AliasSystem
10+ from pygmt .alias import Alias , AliasSystem
1111from pygmt .clib import Session
1212from pygmt .helpers import build_arg_list , fmt_docstring , use_alias
1313
1616
1717@fmt_docstring
1818@use_alias (
19- Jz = "zscale" ,
20- JZ = "zsize" ,
2119 C = "cmap" ,
2220 G = "drapegrid" ,
2321 N = "plane" ,
@@ -33,6 +31,8 @@ def grdview(
3331 self ,
3432 grid : PathLike | xr .DataArray ,
3533 projection : str | None = None ,
34+ zscale : float | str | None = None ,
35+ zsize : float | str | None = None ,
3636 frame : str | Sequence [str ] | bool = False ,
3737 region : Sequence [float | str ] | str | None = None ,
3838 verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
@@ -56,6 +56,8 @@ def grdview(
5656 {aliases}
5757 - B = frame
5858 - J = projection
59+ - Jz = zscale
60+ - JZ = zsize
5961 - R = region
6062 - V = verbose
6163 - c = panel
@@ -71,7 +73,7 @@ def grdview(
7173 with ``perspective``, optionally append */zmin/zmax* to indicate the range to
7274 use for the 3-D axes [Default is the region given by the input grid].
7375 {projection}
74- zscale/zsize : float or str
76+ zscale/zsize
7577 Set z-axis scaling or z-axis size.
7678 {frame}
7779 cmap : str
@@ -157,7 +159,10 @@ def grdview(
157159 """
158160 self ._activate_figure ()
159161
160- aliasdict = AliasSystem ().add_common (
162+ aliasdict = AliasSystem (
163+ Jz = Alias (zscale , name = "zscale" ),
164+ JZ = Alias (zsize , name = "zsize" ),
165+ ).add_common (
161166 B = frame ,
162167 J = projection ,
163168 R = region ,
0 commit comments