2121@use_alias (
2222 C = "cmap" ,
2323 G = "drapegrid" ,
24- N = "plane" ,
2524 Q = "surftype" ,
2625 I = "shading" ,
2726 f = "coltypes" ,
@@ -31,8 +30,10 @@ def grdview( # noqa: PLR0913
3130 self ,
3231 grid : PathLike | xr .DataArray ,
3332 contour_pen : str | None = None ,
34- facade_pen : str | None = None ,
3533 mesh_pen : str | None = None ,
34+ plane : float | bool = False ,
35+ facade_fill : str | None = None ,
36+ facade_pen : str | None = None ,
3637 projection : str | None = None ,
3738 zscale : float | str | None = None ,
3839 zsize : float | str | None = None ,
@@ -61,6 +62,7 @@ def grdview( # noqa: PLR0913
6162 - J = projection
6263 - Jz = zscale
6364 - JZ = zsize
65+ - N = plane, facade_fill
6466 - R = region
6567 - V = verbose
6668 - Wc = contour_pen
@@ -90,11 +92,16 @@ def grdview( # noqa: PLR0913
9092 Note that ``zscale`` and ``plane`` always refer to ``grid``. ``drapegrid`` only
9193 provides the information pertaining to colors, which (if ``drapegrid`` is a
9294 grid) will be looked-up via the CPT (see ``cmap``).
93- plane : float or str
94- *level*\ [**+g**\ *fill*].
95- Draw a plane at this z-level. If the optional color is provided via the **+g**
96- modifier, and the projection is not oblique, the frontal facade between the
97- plane and the data perimeter is colored.
95+ plane
96+ Draw a plane at the specified z-level. If ``True``, default to the minimum value
97+ in the grid. However, if ``region`` was used to set zmin/zmax then that value is
98+ used if it is less than the grid minimum value. Use ``facade_pen`` and
99+ ``facade_fill`` to control the appearance of the plane.
100+ facade_fill
101+ Fill for the frontal facade between the plane specified by ``plane`` and the
102+ data perimeter.
103+ facade_pen
104+ Set the pen attributes used for the facade.
98105 surftype : str
99106 Specify cover type of the grid. Select one of following settings:
100107
@@ -165,9 +172,17 @@ def grdview( # noqa: PLR0913
165172 """
166173 self ._activate_figure ()
167174
175+ # Enable 'plane' if 'facade_fill' or 'facade_pen' is set
176+ if plane is False and (facade_fill is not None or facade_pen is not None ):
177+ plane = True
178+
168179 aliasdict = AliasSystem (
169180 Jz = Alias (zscale , name = "zscale" ),
170181 JZ = Alias (zsize , name = "zsize" ),
182+ N = [
183+ Alias (plane , name = "plane" ),
184+ Alias (facade_fill , name = "facade_fill" , prefix = "+g" ),
185+ ],
171186 Wc = Alias (contour_pen , name = "contour_pen" ),
172187 Wf = Alias (facade_pen , name = "facade_pen" ),
173188 Wm = Alias (mesh_pen , name = "mesh_pen" ),
0 commit comments