Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure.meca: Fix line and circle of offset parameter for dict/pandas input #2226

Merged
merged 11 commits into from
Dec 20, 2022
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
seisman marked this conversation as resolved.
Show resolved Hide resolved
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