Skip to content

shorelines parameter also accepts bool ? #3978

@Esteban82

Description

@Esteban82

Hi,
I'm not a Python expert, so I might be wrong — but I noticed that the documentation for the shorelines parameter (in pygmt.Figure.coast) says it accepts int, str, or list, like this:

shorelines (int, str, or list)

However, I tested it and it seems that bool also works. For example, this snippet from the "Making your first figure" tutorial uses shorelines=True, and it runs without errors:

fig = pygmt.Figure()
fig.coast(
    region=[-69, -68, 43.75, 44.75],
    shorelines=True,
    land="lightgreen",
    water="lightblue",
)
fig.show()

So maybe the documentation should mention that bool is also an accepted input for shorelines?
If I am right, I will happy to help. So, let me know what file should I modify.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions