Skip to content

Incorrect parameter in Figure.meca() #1094

@maxrjones

Description

@maxrjones

Description of the problem

Figure.meca defines an alias as C = offset. Based on the description of the offset parameter, I think this alias should be for the -A option in GMT's meca (https://docs.generic-mapping-tools.org/dev/supplements/seis/meca.html#a); -C is for giving a cmap for the compressive part of the beachball.

This is both a code and documentation issue, since there are these two checks for -C in kwargs (which should not be required for meca):

            # Add in plotting options, if given, otherwise add 0s
            for arg in plot_longitude, plot_latitude:
                if arg is None:
                    spec.append(0)
                else:
                    if "C" not in kwargs:
                        kwargs["C"] = True
                    spec.append(arg)

Relates to the proposed refactoring in #1002

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions