Skip to content

Commit 8bcd2ab

Browse files
committed
Update formatting in makecpt.py
1 parent 0c08776 commit 8bcd2ab

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pygmt/src/makecpt.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def makecpt(**kwargs):
3131
3232
This is a module that will help you make static color palette tables
3333
(CPTs). By default, the CPT will simply be saved to the current session,
34-
but you can use *output* to save it to a file. You define an equidistant
34+
but you can use ``output`` to save it to a file. You define an equidistant
3535
set of contour intervals or pass your own z-table or list, and create a new
3636
CPT based on an existing master (dynamic) CPT. The resulting CPT can be
3737
reversed relative to the master cpt, and can be made continuous or
@@ -49,8 +49,8 @@ def makecpt(**kwargs):
4949
the new master file. If not, the parameters :gmt-term:`COLOR_BACKGROUND`,
5050
:gmt-term:`COLOR_FOREGROUND`, and :gmt-term:`COLOR_NAN` from the
5151
:gmt-docs:`gmt.conf <gmt.conf>` file or the command line will be used. This
52-
default behavior can be overruled using the options *background*,
53-
*overrule_bg* or *no_bg*.
52+
default behavior can be overruled using the options ``background``,
53+
``overrule_bg`` or ``no_bg``.
5454
5555
The color model (RGB, HSV or CMYK) of the palette created by **makecpt**
5656
will be the same as specified in the header of the master CPT. When there
@@ -90,7 +90,7 @@ def makecpt(**kwargs):
9090
CPT is plotted. The *label* may be a comma-separated list of category
9191
names (you can skip a category by not giving a name), or give
9292
*start*[-], where we automatically build monotonically increasing
93-
labels from *start* (a single letter or an integer). Append - to build
93+
labels from *start*\ (a single letter or an integer). Append - to build
9494
ranges *start*-*start+1* instead.
9595
series : list or str
9696
[*min/max/inc*\ [**+b**\|\ **l**\|\ **n**\ ]\|\ *file*\|\ *list*\ ].
@@ -112,11 +112,11 @@ def makecpt(**kwargs):
112112
file. If not given or False (default), saves the CPT as the session
113113
current CPT.
114114
reverse : str
115-
Set this to True or c [Default] to reverse the sense of color
115+
Set this to True or **c**\ [Default] to reverse the sense of color
116116
progression in the master CPT. Set this to z to reverse the sign of
117117
z-values in the color table. Note that this change of z-direction
118-
happens before *truncate* and *series* values are used so the latter
119-
must be compatible with the changed *z*-range. See also
118+
happens before ``truncate`` and ``series`` values are used so the
119+
latter must be compatible with the changed *z*-range. See also
120120
:gmt-docs:`cookbook/features.html#manipulating-cpts`.
121121
overrule_bg : str
122122
Overrule background, foreground, and NaN colors specified in the master

0 commit comments

Comments
 (0)