Skip to content

Commit 4b4a539

Browse files
Merge branch 'main' into improve-polar-proj-example
2 parents 0aa59f9 + 3433831 commit 4b4a539

File tree

9 files changed

+20
-18
lines changed

9 files changed

+20
-18
lines changed

pygmt/src/grdcontour.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def grdcontour(self, grid, **kwargs):
6262
single annotation level +\ *annot_int*
6363
- Disable all annotation with **-**
6464
- Optional label modifiers can be specified as a single string
65-
``'[annot_int]+e'`` or with a list of arguments
66-
``([annot_int], 'e', 'f10p', 'gred')``.
65+
``"[annot_int]+e"`` or with a list of arguments
66+
``([annot_int], "e", "f10p", "gred")``.
6767
limit : str or list of 2 ints
6868
*low*/*high*.
6969
Do no draw contours below `low` or above `high`, specify as string

pygmt/src/grdfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def grdfilter(grid, **kwargs):
9494
4: grid (x,y) in degrees, *width* in km, Spherical distance
9595
calculation.
9696
97-
5: grid (x,y) in Mercator ``projection='m1'`` img units, *width* in km,
97+
5: grid (x,y) in Mercator ``projection="m1"`` img units, *width* in km,
9898
Spherical distance calculation.
9999
100100
{I}

pygmt/src/grdimage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ def grdimage(self, grid, **kwargs):
108108
image formats you may need to explicitly set ``img_in``, which
109109
specifies that the grid is in fact an image file to be read via
110110
GDAL. Append **r** to assign the region specified by ``region``
111-
to the image. For example, if you have used ``region='d'`` then the
112-
image will be assigned a global domain. This mode allows you to
113-
project a raw image (an image without referencing coordinates).
111+
to the image. For example, if you have used ``region="d"`` then
112+
the image will be assigned a global domain. This mode allows you
113+
to project a raw image (an image without referencing coordinates).
114114
dpi : int
115115
[**i**\|\ *dpi*].
116116
Sets the resolution of the projected grid that will be created if a

pygmt/src/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def plot(self, data=None, x=None, y=None, size=None, direction=None, **kwargs):
9090
The size of the data points in units specified using ``style``.
9191
Only valid if using ``x``/``y``.
9292
direction : list of two 1d arrays
93-
If plotting vectors (using ``style='V'`` or ``style='v'``), then
93+
If plotting vectors (using ``style="V"`` or ``style="v"``), then
9494
should be a list of two 1d arrays with the vector directions. These
9595
can be angle and length, azimuth and length, or x and y components,
9696
depending on the style options chosen.
@@ -146,7 +146,7 @@ def plot(self, data=None, x=None, y=None, size=None, direction=None, **kwargs):
146146
incoming segment [Default].
147147
- **r** : Same as **s**, but the group reference point is reset
148148
after each record to the previous point (this method is only
149-
available with the ``connection='r'`` scheme).
149+
available with the ``connection="r"`` scheme).
150150
151151
Instead of the codes **a**\|\ **f**\|\ **s**\|\ **r** you may append
152152
the coordinates of a *refpoint* which will serve as a fixed external
@@ -192,7 +192,7 @@ def plot(self, data=None, x=None, y=None, size=None, direction=None, **kwargs):
192192
color lookup table via ``cmap``. Alternatively, give the name of a
193193
*file* with one z-value (read from the last column) for each
194194
polygon in the input data. To apply it to the fill color, use
195-
``color='+z'``. To apply it to the pen color, append **+z** to
195+
``color="+z"``. To apply it to the pen color, append **+z** to
196196
``pen``.
197197
{a}
198198
{b}

pygmt/src/plot3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def plot3d(
9191
The size of the data points in units specified in ``style``.
9292
Only valid if using ``x``/``y``/``z``.
9393
direction : list of two 1d arrays
94-
If plotting vectors (using ``style='V'`` or ``style='v'``), then
94+
If plotting vectors (using ``style="V"`` or ``style="v"``), then
9595
should be a list of two 1d arrays with the vector directions. These
9696
can be angle and length, azimuth and length, or x and y components,
9797
depending on the style options chosen.
@@ -162,7 +162,7 @@ def plot3d(
162162
color lookup table via ``cmap``. Alternatively, give the name of a
163163
*file* with one z-value (read from the last column) for each
164164
polygon in the input data. To apply it to the fill color, use
165-
``color='+z'``. To apply it to the pen color, append **+z** to
165+
``color="+z"``. To apply it to the pen color, append **+z** to
166166
``pen``.
167167
{a}
168168
{b}

pygmt/src/select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def select(data=None, outfile=None, **kwargs):
5656
7. inside bins of a grid mask whose nodes are non-zero
5757
5858
The sense of the tests can be reversed for each of these 7 criteria by
59-
using the ``reverse`` option.
59+
using the ``reverse`` parameter.
6060
6161
Full option list at :gmt-docs:`gmtselect.html`
6262

pygmt/src/velo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def velo(self, data=None, **kwargs):
7979
confidence ellipse. Use **+f** to set the font and size of the text
8080
[Default is 9p,Helvetica,black]; give **+f**\ 0 to deactivate
8181
labeling. The arrow will be drawn with the pen attributes specified
82-
by the ``pen`` option and the arrow-head can be colored via
82+
by the ``pen`` parameter and the arrow-head can be colored via
8383
``color``. The ellipse will be filled with the color or shade
84-
specified by the ``uncertaintycolor`` option [Default is
84+
specified by the ``uncertaintycolor`` parameter [Default is
8585
transparent], and its outline will be drawn if ``line`` is selected
8686
using the pen selected (by ``pen`` if not given by ``line``).
8787
Parameters are expected to be in the following columns:
@@ -112,9 +112,9 @@ def velo(self, data=None, **kwargs):
112112
confidence ellipse. Use **+f** to set the font and size of the text
113113
[Default is 9p,Helvetica,black]; give **+f**\ 0 to deactivate
114114
labeling. The arrow will be drawn with the pen attributes specified
115-
by the ``pen`` option and the arrow-head can be colored via
115+
by the ``pen`` parameter and the arrow-head can be colored via
116116
``color``. The ellipse will be filled with the color or shade
117-
specified by the ``uncertaintycolor`` option [Default is
117+
specified by the ``uncertaintycolor`` parameter [Default is
118118
transparent], and its outline will be drawn if ``line`` is selected
119119
using the pen selected (by ``pen`` if not given by ``line``).
120120
Parameters are expected to be in the following columns:

pygmt/src/which.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def which(fname, **kwargs):
2525
2626
``fname`` can also be a downloadable file (either a full URL, a
2727
`@file` special file for downloading from the GMT Site Cache, or
28-
`@earth_relief_*` topography grids). In these cases, use option
28+
`@earth_relief_*` topography grids). In these cases, use parameter
2929
``download`` to set the desired behavior. If ``download`` is not used
3030
(or False), the file will not be found.
3131
@@ -53,7 +53,7 @@ def which(fname, **kwargs):
5353
Returns
5454
-------
5555
path : str or list
56-
The path(s) to the file(s), depending on the options used.
56+
The path(s) to the file(s), depending on the parameters used.
5757
5858
Raises
5959
------

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# An emtpy setup.cfg file for backward compatibility with pip<21.3.
2+
# See https://github.com/GenericMappingTools/pygmt/issues/2100 for the issue report.

0 commit comments

Comments
 (0)