diff --git a/pygmt/src/grdimage.py b/pygmt/src/grdimage.py index a1ba783ab6c..e3158565c77 100644 --- a/pygmt/src/grdimage.py +++ b/pygmt/src/grdimage.py @@ -27,6 +27,7 @@ N="no_clip", Q="nan_transparent", R="region", + T="no_interpolation", V="verbose", n="interpolation", c="panel", @@ -132,6 +133,14 @@ def grdimage(self, grid, **kwargs): 3). If the input is a grid, use **+z** to select another grid value than NaN. If input is instead an image, append an alternate *color* to select another pixel value to be transparent [Default is ``"black"``]. + no_interpolation : bool or str + [**+o**\ [*pen*\ ]][**+s**]. + Plot without any interpolation. This involves converting each node- + centered bin into a polygon which is then painted separately. Append **+s** + to skip nodes with z = NaN. This option is suitable for categorical data + where interpolating between values is meaningless and a categorical CPT + has been provided via ``cmap``. Append **+o** to draw the tile outlines, + and specify a custom pen. {region} {verbose} {panel} diff --git a/pygmt/src/grdview.py b/pygmt/src/grdview.py index 5e6256a0b1f..03a9d5c8c59 100644 --- a/pygmt/src/grdview.py +++ b/pygmt/src/grdview.py @@ -23,6 +23,7 @@ Wm="meshpen", Wf="facadepen", I="shading", + T="no_interpolation", V="verbose", c="panel", f="coltypes", @@ -103,6 +104,15 @@ def grdview(self, grid, **kwargs): specify azimuth, intensity, and ambient arguments for that function, or just give **+d** to select the default arguments [Default is **+a**\ -45\ **+nt**\ 1\ **+m**\ 0]. + no_interpolation : bool or str + [**+o**\ [*pen*\ ]][**+s**]. + Plot without any interpolation. This involves converting each node- + centered bin into a polygon which is then painted separately. Append **+s** + to skip nodes with z = NaN. This option is suitable for categorical data + where interpolating between values is meaningless and a categorical CPT + has been provided via ``cmap``. Append **+o** to draw the tile outlines, + and specify a custom pen. As this option produces a flat surface it cannot + be combined with ``zscale`` or ``zsize``. {verbose} {panel} {coltypes}