Skip to content
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

Figure.makecpt: Make the 'reverse' parameter more Pythonic #3009

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions pygmt/src/makecpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ def makecpt(**kwargs):
level :func:`pygmt.makecpt` is called.
reverse : str
Set this to ``True`` or **c** [Default] to reverse the sense of color
progression in the master CPT. Set this to **z** to reverse the sign
of z-values in the color table. Note that this change of z-direction
happens before ``truncate`` and ``series`` values are used so the
latter must be compatible with the changed z-range. See also
progression in the master CPT. Also the foreground and background colors
are exchanged, including those specified by :gmt-term:`COLOR_BACKGROUND` and
:gmt-term:`COLOR_FOREGROUND`. Set this to **z** to reverse the sign of z-values
in the color table. Note that this change of z-direction happens before
michaelgrund marked this conversation as resolved.
Show resolved Hide resolved
``truncate`` and ``series`` values are used, so the latter must be compatible
with the changed z-range. See also
:gmt-docs:`reference/features.html#manipulating-cpts`.
overrule_bg : str
Overrule background, foreground, and NaN colors specified in the master
Expand Down
Loading