Skip to content

Commit ab5710b

Browse files
author
Meghan Jones
committed
Update line lengths
1 parent 9df08fa commit ab5710b

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

pygmt/src/colorbar.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ def colorbar(self, **kwargs):
5151
position : str
5252
[**g**\|\ **j**\|\ **J**\|\ **n**\|\ **x**]\ *refpoint*
5353
[**+w**\ *length*\ [/\ *width*]]\ [**+e**\ [**b**\|\ **f**][*length*]]
54-
[**+h**\|\ **v**][**+j**\ *justify*][**+m**\ [**a**\|\ **c**\|\ **l**\|\ **u**]]
54+
[**+h**\|\ **v**][**+j**\ *justify*]
55+
[**+m**\ [**a**\|\ **c**\|\ **l**\|\ **u**]]
5556
[**+n**\ [*txt*]][**+o**\ *dx*\ [/*dy*]].
5657
Defines the reference point on the map for the color scale using one of
57-
four coordinate systems: (1) Use *g* for map (user) coordinates, (2) use
58-
*j* or *J* for setting refpoint via a 2-char justification code
58+
four coordinate systems: (1) Use *g* for map (user) coordinates, (2)
59+
use *j* or *J* for setting refpoint via a 2-char justification code
5960
that refers to the (invisible) map domain rectangle, (3) use *n*
6061
for normalized (0-1) coordinates, or (4) use *x* for plot
6162
coordinates (inches, cm, etc.). All but *x* requires both *region*
@@ -77,17 +78,17 @@ def colorbar(self, **kwargs):
7778
separate in x- and y-direction, or individual side spacings between
7879
scale and border. Append +i to draw a secondary, inner border as well.
7980
We use a uniform gap between borders of 2p and the MAP_DEFAULTS_PEN
80-
unless other values are specified. Append +r to draw rounded rectangular
81-
borders instead, with a 6p corner radius. You can override this
82-
radius by appending another value. Finally, append +s to draw an
81+
unless other values are specified. Append +r to draw rounded
82+
rectangular borders instead, with a 6p corner radius. You can override
83+
this radius by appending another value. Finally, append +s to draw an
8384
offset background shaded region. Here, dx/dy indicates the shift
8485
relative to the foreground frame [4p/-4p] and shade sets the fill
8586
style to use for shading [gray50].
8687
truncate : list or str
8788
*zlo*/*zhi*.
88-
Truncate the incoming CPT so that the lowest and highest z-levels are to
89-
zlo and zhi. If one of these equal NaN then we leave that end of the CPT
90-
alone. The truncation takes place before the plotting.
89+
Truncate the incoming CPT so that the lowest and highest z-levels are
90+
to zlo and zhi. If one of these equal NaN then we leave that end of the
91+
CPT alone. The truncation takes place before the plotting.
9192
scale : float
9293
Multiply all z-values in the CPT by the provided scale. By default
9394
the CPT is used as is.

pygmt/src/grdview.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def grdview(self, grid, **kwargs):
6666
drapegrid : str or xarray.DataArray
6767
The file name or a DataArray of the image grid to be draped on top
6868
of the relief provided by grid. [Default determines colors from
69-
grid]. Note that **zscale** and **plane** always refers to the grid. The
70-
drapegrid only provides the information pertaining to colors, which
69+
grid]. Note that **zscale** and **plane** always refers to the grid.
70+
The drapegrid only provides the information pertaining to colors, which
7171
(if drapegrid is a grid) will be looked-up via the CPT (see **cmap**).
7272
plane : float or str
7373
*level*\ [**+g**\ *fill*].
@@ -102,7 +102,8 @@ def grdview(self, grid, **kwargs):
102102
input data grid reliefgrid via a call to ``grdgradient``; append
103103
**+a**\ *azimuth*, **+n**\ *args*, and **+m**\ *ambient* to specify
104104
azimuth, intensity, and ambient arguments for that module, or just give
105-
**+d** to select the default arguments (**+a**\ -45\ **+nt**\ 1\ **+m**\ 0).
105+
**+d** to select the default arguments
106+
(**+a**\ -45\ **+nt**\ 1\ **+m**\ 0).
106107
{V}
107108
{XY}
108109
{c}

pygmt/src/legend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def legend(self, spec=None, position="JTR+jTR+o0.2c", box="+gwhite+p1p", **kwarg
6060
[**+c**\ *clearances*][**+g**\ *fill*][**+i**\ [[*gap*/]\ *pen*]]
6161
[**+p**\ [*pen*]][**+r**\ [*radius*]][**+s**\ [[*dx*/*dy*/][*shade*]]].
6262
Without further options, draws a rectangular border around the legend
63-
using **MAP_FRAME_PEN**. By default, uses **+g**\ white\ **+p**\ 1p which draws a
64-
box around the legend using a 1 point black pen and adds a white
65-
background.
63+
using **MAP_FRAME_PEN**. By default, uses **+g**\ white\ **+p**\ 1p
64+
which draws a box around the legend using a 1 point black pen and adds
65+
a white background.
6666
{V}
6767
{XY}
6868
{c}

pygmt/src/plot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
112112
Draw symmetrical error bars. Full documentation is at
113113
:gmt-docs:`plot.html#e`.
114114
connection : str
115-
[**c**\|\ **n**\|\ **r**][**a**\|\ **f**\|\ **s**\|\ **r**\|\ *refpoint*].
115+
[**c**\|\ **n**\|\ **r**]
116+
[**a**\|\ **f**\|\ **s**\|\ **r**\|\ *refpoint*].
116117
Alter the way points are connected (by specifying a *scheme*) and
117118
data are grouped (by specifying a *method*). Append one of three
118119
line connection schemes:
@@ -139,8 +140,8 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
139140
after each record to the previous point (this method is only
140141
available with the ``connection='r'`` scheme).
141142
142-
Instead of the codes **a**\|\ **f**\|\ **s**\|\ **r** you may append the
143-
coordinates of a *refpoint* which will serve as a fixed external
143+
Instead of the codes **a**\|\ **f**\|\ **s**\|\ **r** you may append
144+
the coordinates of a *refpoint* which will serve as a fixed external
144145
reference point for all groups.
145146
{G}
146147
intensity : float or bool

0 commit comments

Comments
 (0)