Skip to content

Commit ffc6fd2

Browse files
Copilotseisman
andauthored
Figure.grdview: Add alias "smooth" for the -S option (#4444)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
1 parent 783610f commit ffc6fd2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pygmt/src/grdview.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def grdview( # noqa: PLR0913
134134
facade_fill: str | None = None,
135135
facade_pen: str | None = None,
136136
projection: str | None = None,
137+
smooth: int | None = None,
137138
zscale: float | str | None = None,
138139
zsize: float | str | None = None,
139140
region: Sequence[float | str] | str | None = None,
@@ -164,8 +165,9 @@ def grdview( # noqa: PLR0913
164165
- Jz = zscale
165166
- JZ = zsize
166167
- N = plane, facade_fill
167-
- R = region
168168
- Q = surftype, dpi, mesh_fill, nan_transparent, **+m**: monochrome
169+
- R = region
170+
- S = smooth
169171
- V = verbose
170172
- Wc = contour_pen
171173
- Wf = facade_pen
@@ -231,6 +233,9 @@ def grdview( # noqa: PLR0913
231233
function, or just give **+d** to select the default arguments [Default is
232234
``"+a-45+nt1+m0"``].
233235
$projection
236+
smooth
237+
Sets the smooth factor used for smoothing the contours before plotting
238+
[Default is no smoothing].
234239
zscale
235240
zsize
236241
Set z-axis scaling or z-axis size.
@@ -312,6 +317,7 @@ def grdview( # noqa: PLR0913
312317
Alias(plane, name="plane"),
313318
Alias(facade_fill, name="facade_fill", prefix="+g"),
314319
],
320+
S=Alias(smooth, name="smooth"),
315321
Wc=Alias(contour_pen, name="contour_pen"),
316322
Wf=Alias(facade_pen, name="facade_pen"),
317323
Wm=Alias(mesh_pen, name="mesh_pen"),

0 commit comments

Comments
 (0)