Skip to content

Commit

Permalink
Figure.plot/Figure.plot3d: Improve the check of the "style" parameter…
Browse files Browse the repository at this point in the history
… for "v" or "V" (#3603)
  • Loading branch information
seisman authored Nov 11, 2024
1 parent ff9daae commit 763dc07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pygmt/src/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ def plot(
if kind == "empty": # Add more columns for vectors input
# Parameters for vector styles
if (
kwargs.get("S") is not None
isinstance(kwargs.get("S"), str)
and len(kwargs["S"]) >= 1
and kwargs["S"][0] in "vV"
and is_nonstr_iter(direction)
):
Expand Down
3 changes: 2 additions & 1 deletion pygmt/src/plot3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def plot3d(
if kind == "empty": # Add more columns for vectors input
# Parameters for vector styles
if (
kwargs.get("S") is not None
isinstance(kwargs.get("S"), str)
and len(kwargs["S"]) >= 1
and kwargs["S"][0] in "vV"
and is_nonstr_iter(direction)
):
Expand Down

0 comments on commit 763dc07

Please sign in to comment.