Skip to content

Commit

Permalink
Figure.meca: Fix line and circle of offset parameter for dict/pandas …
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonnefroehlich authored and Josh Sixsmith committed Dec 21, 2022
1 parent 6a94464 commit ffd37a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pygmt/src/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ def meca(
spec[["plot_longitude", "plot_latitude"]] = spec[
["plot_longitude", "plot_latitude"]
].astype(str)
kwargs["A"] = True
if kwargs.get("A") is None:
kwargs["A"] = True
if "event_name" in spec.columns:
newcols += ["event_name"]
spec["event_name"] = spec["event_name"].astype(str)
Expand All @@ -306,7 +307,7 @@ def meca(
# Convert 1d array into 2d array
spec = np.atleast_2d(spec)

# determine data_foramt from convection and component
# determine data_format from convention and component
data_format = data_format_code(convention=convention, component=component)

# Assemble -S flag
Expand Down

0 comments on commit ffd37a8

Please sign in to comment.