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 , kwargs_to_strings , 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" ,
@@ -35,6 +33,8 @@ def grdview(
3533 self ,
3634 grid : PathLike | xr .DataArray ,
3735 projection : str | None = None ,
36+ zscale : float | str | None = None ,
37+ zsize : float | str | None = None ,
3838 frame : str | Sequence [str ] | bool = False ,
3939 region : Sequence [float | str ] | str | None = None ,
4040 verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
@@ -57,6 +57,8 @@ def grdview(
5757 {aliases}
5858 - B = frame
5959 - J = projection
60+ - Jz = zscale
61+ - JZ = zsize
6062 - R = region
6163 - V = verbose
6264 - 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