Skip to content
Open
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
18 changes: 9 additions & 9 deletions pygmt/src/solar.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,14 @@


@fmt_docstring
@use_alias(
B="frame",
G="fill",
R="region",
W="pen",
p="perspective",
)
@use_alias(B="frame", R="region", p="perspective")
@kwargs_to_strings(R="sequence", p="sequence")
def solar(
self,
terminator: Literal["astronomical", "civil", "day_night", "nautical"] = "day_night",
terminator_datetime=None,
fill: str | None = None,
pen: str | None = None,
projection=None,
verbose: Literal["quiet", "error", "warning", "timing", "info", "compat", "debug"]
| bool = False,
Expand All @@ -42,9 +38,11 @@ def solar(
Full GMT docs at :gmt-docs:`solar.html`.

{aliases}
- G = fill
- J = projection
- T = terminator, **+d**: terminator_datetime
- V = verbose
- W = pen
- c = panel
- t = transparency

Expand All @@ -67,9 +65,9 @@ def solar(
{region}
{projection}
{frame}
fill : str
fill
Set color or pattern for filling terminators [Default is no fill].
pen : str
pen
Set pen attributes for lines [Default is ``"0.25p,black,solid"``].
{verbose}
{panel}
Expand Down Expand Up @@ -114,6 +112,7 @@ def solar(
raise GMTValueError(terminator_datetime, description="datetime") from verr

aliasdict = AliasSystem(
G=Alias(fill, name="fill"),
T=[
Alias(
terminator,
Expand All @@ -127,6 +126,7 @@ def solar(
),
Alias(datetime_string, name="terminator_datetime", prefix="+d"),
],
W=Alias(pen, name="pen"),
).add_common(
J=projection,
V=verbose,
Expand Down
Loading