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!
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:So maybe the documentation should mention that
boolis 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!