Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pygmt/alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ def add_common(self, **kwargs):
alias = Alias(value, name="projection")
case "c":
alias = Alias(value, name="panel", sep=",", size=2)
case "t":
alias = Alias(value, name="transparency")
case _:
raise GMTValueError(key, description="common parameter")
self.aliasdict[key] = alias
Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/basemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
Tm="compass",
f="coltypes",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", p="sequence")
def basemap(
Expand All @@ -30,6 +29,7 @@ def basemap(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -49,6 +49,7 @@ def basemap(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -98,6 +99,7 @@ def basemap(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/coast.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
S="water",
W="shorelines",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", p="sequence")
def coast(
Expand All @@ -45,6 +44,7 @@ def coast(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -71,6 +71,7 @@ def coast(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -233,6 +234,7 @@ def coast(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
W="scale",
Z="zfile",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", G="sequence", I="sequence", p="sequence")
def colorbar(
Expand All @@ -34,6 +33,7 @@ def colorbar(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -53,6 +53,7 @@ def colorbar(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -158,6 +159,7 @@ def colorbar(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
i="incols",
l="label",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", i="sequence_comma", p="sequence")
def contour(
Expand All @@ -48,6 +47,7 @@ def contour(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -64,6 +64,7 @@ def contour(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -162,6 +163,7 @@ def contour(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/grdcontour.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
l="label",
f="coltypes",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", L="sequence", p="sequence")
def grdcontour(
Expand All @@ -45,6 +44,7 @@ def grdcontour(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -58,6 +58,7 @@ def grdcontour(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -166,6 +167,7 @@ def grdcontour(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/grdimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
n="interpolation",
f="coltypes",
p="perspective",
t="transparency",
x="cores",
)
@kwargs_to_strings(R="sequence", p="sequence")
Expand All @@ -39,6 +38,7 @@ def grdimage(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand Down Expand Up @@ -78,6 +78,7 @@ def grdimage(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -175,6 +176,7 @@ def grdimage(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/grdview.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
f="coltypes",
n="interpolation",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", p="sequence")
def grdview(
Expand All @@ -40,6 +39,7 @@ def grdview(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -57,6 +57,7 @@ def grdview(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -157,6 +158,7 @@ def grdview(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
i="incols",
l="label",
p="perspective",
t="transparency",
w="wrap",
)
@kwargs_to_strings(R="sequence", T="sequence", i="sequence_comma", p="sequence")
Expand All @@ -45,6 +44,7 @@ def histogram(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -56,6 +56,7 @@ def histogram(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -150,6 +151,7 @@ def histogram(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
M="monochrome",
R="region",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", p="sequence")
def image(
Expand All @@ -28,6 +27,7 @@ def image(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -42,6 +42,7 @@ def image(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -85,6 +86,7 @@ def image(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
D="position",
F="box",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", p="sequence")
def legend(
Expand All @@ -37,6 +36,7 @@ def legend(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -54,6 +54,7 @@ def legend(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -107,6 +108,7 @@ def legend(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
D="position",
F="box",
S="style",
t="transparency",
)
@kwargs_to_strings(R="sequence", p="sequence")
def logo(
Expand All @@ -24,6 +23,7 @@ def logo(
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand All @@ -40,6 +40,7 @@ def logo(
- J = projection
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -70,6 +71,7 @@ def logo(
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
4 changes: 3 additions & 1 deletion pygmt/src/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def _auto_offset(spec) -> bool:
T="nodal",
W="pen",
p="perspective",
t="transparency",
)
@kwargs_to_strings(R="sequence", p="sequence")
def meca( # noqa: PLR0913
Expand All @@ -148,6 +147,7 @@ def meca( # noqa: PLR0913
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
panel: int | tuple[int, int] | bool = False,
transparency: float | None = None,
**kwargs,
):
r"""
Expand Down Expand Up @@ -206,6 +206,7 @@ def meca( # noqa: PLR0913
- S = scale/convention/component
- V = verbose
- c = panel
- t = transparency

Parameters
----------
Expand Down Expand Up @@ -372,6 +373,7 @@ def meca( # noqa: PLR0913
J=projection,
V=verbose,
c=panel,
t=transparency,
)
aliasdict.merge(kwargs)

Expand Down
Loading
Loading