Repository navigation
Figure.grdimage: Expand docstring for "nan_transparent" parameter - #2461
Merged
Merged
Conversation
seisman
reviewed
Mar 26, 2023
| nan_transparent : bool | ||
| nan_transparent : bool or str | ||
| [**+z**\ *value*][*color*] | ||
| Make grid nodes with z = NaN transparent, using the color-masking |
Member
There was a problem hiding this comment.
using the color-masking feature in PostScript Level 3 (the PS device must support PS Level 3).
@PaulWessel A question for you: PostScript Level 3 was released in 1997. Is it safe to assume that all PS devices (i.e., printers as I understand it) support PS Level 3 now? Or do we care about PS Level 3 if we always convert PS to PDF and then view/print?
Member
There was a problem hiding this comment.
Ping @PaulWessel just in case he missed this comment.
Member
There was a problem hiding this comment.
I think it's fine to merge this keeping the warning
michaelgrund
approved these changes
Mar 27, 2023
Closed
31 of 36 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
This PR aims to expand the docstring for the
nan_transparentparameter ofpygmt.Figure.grdimage, based on the upstream GMT documentation for Q.Somehow / Maybe related to this forum post: https://forum.generic-mapping-tools.org/t/how-to-not-plot-value-zero-on-grid/3783/5
Preview at https://pygmt-dev--2461.org.readthedocs.build/en/2461/api/generated/pygmt.Figure.grdimage.html
Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version