Skip to content

Commit

Permalink
Figure.plot/Figure.plot3d: Allow the 'style' parameter to be an empty…
Browse files Browse the repository at this point in the history
… string
  • Loading branch information
seisman committed Nov 8, 2024
1 parent b6f3e2b commit a541aa4
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 a541aa4

Please sign in to comment.