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,6 @@ 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.
9895 surftype : str
9996 Specify cover type of the grid. Select one of following settings:
10097
@@ -110,13 +107,20 @@ def grdview( # noqa: PLR0913
110107 contour_pen
111108 Draw contour lines on top of surface or mesh (not image). Append pen attributes
112109 used for the contours.
113- facade_pen
114- Set the pen attributes used for the facade. You must also select ``plane`` for
115- the facade outline to be drawn.
116110 mesh_pen
117111 Set the pen attributes used for the mesh. You must also select ``surftype`` of
118112 **m** or **sm** for meshlines to be drawn.
119- shading : str
113+ plane
114+ Draw a plane at the specified z-level. If ``True``, defaults to the minimum
115+ value in the grid. However, if ``region`` was used to set *zmin/zmax* then
116+ *zmin* is used if it is less than the grid minimum value. Use ``facade_pen`` and
117+ ``facade_fill`` to control the appearance of the plane.
118+ facade_fill
119+ Fill for the frontal facade between the plane specified by ``plane`` and the
120+ data perimeter.
121+ facade_pen
122+ Set the pen attributes used for the facade.
123+ shading : str or float
120124 Provide the name of a grid file with intensities in the (-1,+1) range, or a
121125 constant intensity to apply everywhere (affects the ambient light).
122126 Alternatively, derive an intensity grid from the main input data grid by using
@@ -165,9 +169,17 @@ def grdview( # noqa: PLR0913
165169 """
166170 self ._activate_figure ()
167171
172+ # Enable 'plane' if 'facade_fill' or 'facade_pen' are set
173+ if plane is False and (facade_fill is not None or facade_pen is not None ):
174+ plane = True
175+
168176 aliasdict = AliasSystem (
169177 Jz = Alias (zscale , name = "zscale" ),
170178 JZ = Alias (zsize , name = "zsize" ),
179+ N = [
180+ Alias (plane , name = "plane" ),
181+ Alias (facade_fill , name = "facade_fill" , prefix = "+g" ),
182+ ],
171183 Wc = Alias (contour_pen , name = "contour_pen" ),
172184 Wf = Alias (facade_pen , name = "facade_pen" ),
173185 Wm = Alias (mesh_pen , name = "mesh_pen" ),
0 commit comments