Skip to content

Fix bug that stops Figure.coast from plotting with only dcw#910

Merged
weiji14 merged 1 commit intomasterfrom
coast-dcw-bug
Feb 16, 2021
Merged

Fix bug that stops Figure.coast from plotting with only dcw#910
weiji14 merged 1 commit intomasterfrom
coast-dcw-bug

Conversation

@willschlitzer
Copy link
Contributor

@willschlitzer willschlitzer commented Feb 16, 2021

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.

Fixes #903

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

@willschlitzer willschlitzer added this to the 0.3.1 milestone Feb 16, 2021
@weiji14 weiji14 added the bug Something isn't working label Feb 16, 2021
@weiji14 weiji14 changed the title Fix bug that would stop coast from plotting with dcw Fix bug that stops Figure.coast from plotting with only dcw Feb 16, 2021
Copy link
Member

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is fine when tested locally. The Style Checks pylint error is due to pylint==2.6.1 and is unrelated (see pylint-dev/pylint#4096), I'll make a quick pin to pylint==2.6.0 in a separate PR (at #911) and we can merge this one afterwards.

Edit: pylint==2.6.2 is released so all good to merge now.

@weiji14 weiji14 merged commit 27c0927 into master Feb 16, 2021
@weiji14 weiji14 deleted the coast-dcw-bug branch February 16, 2021 10:40
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…appingTools#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fig.coast() with just dcw kwarg fails

2 participants