File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 99from pygmt ._typing import PathLike
1010from pygmt .alias import Alias , AliasSystem
1111from pygmt .clib import Session
12- from pygmt .helpers import build_arg_list , fmt_docstring , use_alias
12+ from pygmt .helpers import build_arg_list , deprecate_parameter , fmt_docstring , use_alias
1313
1414__doctest_skip__ = ["grdimage" ]
1515
1616
1717@fmt_docstring
18+ @deprecate_parameter ("bitcolor" , "bit_color" , "v0.18.0" , remove_version = "v0.20.0" )
1819@use_alias (
1920 C = "cmap" ,
2021 D = "img_in" ,
2122 E = "dpi" ,
22- G = "bitcolor " ,
23+ G = "bit_color " ,
2324 I = "shading" ,
2425 Q = "nan_transparent" ,
2526 n = "interpolation" ,
@@ -109,7 +110,7 @@ def grdimage( # noqa: PLR0913
109110 same size (rows and columns) as the input file. Specify **i** to
110111 use the PostScript image operator to interpolate the image at the
111112 device resolution.
112- bitcolor : str
113+ bit_color : str
113114 *color*\ [**+b**\|\ **f**\].
114115 This parameter only applies when a resulting 1-bit image otherwise
115116 would consist of only two colors: black (0) and white (255). If so,
Original file line number Diff line number Diff line change 88from pygmt ._typing import PathLike
99from pygmt .alias import Alias , AliasSystem
1010from pygmt .clib import Session
11- from pygmt .helpers import build_arg_list , fmt_docstring , use_alias
11+ from pygmt .helpers import build_arg_list , deprecate_parameter , fmt_docstring , use_alias
1212from pygmt .params import Box
1313
1414
1515@fmt_docstring
16- @use_alias (D = "position" , G = "bitcolor" )
16+ @deprecate_parameter ("bitcolor" , "bit_color" , "v0.18.0" , remove_version = "v0.20.0" )
17+ @use_alias (D = "position" , G = "bit_color" )
1718def image (
1819 self ,
1920 imagefile : PathLike ,
@@ -74,7 +75,7 @@ def image(
7475 box is drawn using :gmt-term:`MAP_FRAME_PEN`. To customize the box appearance,
7576 pass a :class:`pygmt.params.Box` object to control style, fill, pen, and other
7677 box properties.
77- bitcolor : str or list
78+ bit_color : str or list
7879 [*color*][**+b**\|\ **f**\|\ **t**].
7980 Change certain pixel values to another color or make them transparent.
8081 For 1-bit images you can specify an alternate *color* for the
You can’t perform that action at this time.
0 commit comments