Skip to content

Commit 27c0927

Browse files
Fix bug that stops Figure.coast from plotting with only dcw (#910)
GMT allows coast to plot with the `-E` argument and no other colors set, but PyGMT would raise an error if `dcw` was the only argument. This is a fix for that.
1 parent ce5188f commit 27c0927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygmt/src/coast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ def coast(self, **kwargs):
187187
{V}
188188
"""
189189
kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access
190-
if not args_in_kwargs(args=["C", "G", "S", "I", "N", "Q", "W"], kwargs=kwargs):
190+
if not args_in_kwargs(args=["C", "G", "S", "I", "N", "E", "Q", "W"], kwargs=kwargs):
191191
raise GMTInvalidInput(
192192
"""At least one of the following arguments must be specified:
193-
lakes, land, water, rivers, borders, Q, or shorelines"""
193+
lakes, land, water, rivers, borders, dcw, Q, or shorelines"""
194194
)
195195
with Session() as lib:
196196
lib.call_module("coast", build_arg_string(kwargs))

0 commit comments

Comments
 (0)