-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lakes alias to Figure.coast() #781
Add lakes alias to Figure.coast() #781
Conversation
Also see some discussions in #474 (comment). Ping @GenericMappingTools/python for comments on the argument name. |
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
@seisman Looking at that PR, I'm not sure what the issue with using a long-name alias for |
Yes, We need to be very careful about choosing these long names. Sometimes we may find that the long names are inappropriate and have to change them to other names, which may break backward compatibility. For example, @weiji14 and I were thinking about changing |
Just checked the documentation of |
/format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to merge after you fix this style issue:
pygmt/base_plotting.py:117:80: W505 doc line too long (83 > 79 characters)
@willschlitzer When merging a PR, it would be better to simplify the commit description. For example, this is how this PR looks like after merging into the master branch. A better one is: |
@seisman Sounds good; my apologies for just leaving the defaults in. |
* Add lakes alias to coast in base_plotting.py * Changing color to fill * Update coast docstring to r-string and change line lengths * Add test for lake alias to test_coast.py * Run make format * Update pygmt/base_plotting.py Co-authored-by: Dongdong Tian <[email protected]> * Update pygmt/base_plotting.py Co-authored-by: Dongdong Tian <[email protected]> * Fixing doc string length Co-authored-by: Dongdong Tian <[email protected]>
Adding the
lakes
alias for the -C argument toFigure.coast()
.