Skip to content

Commit 99dd6e8

Browse files
committed
Replace {{/}} with {/} in LaTeX math equations
1 parent b428491 commit 99dd6e8

File tree

8 files changed

+30
-30
lines changed

8 files changed

+30
-30
lines changed

pygmt/src/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def colorbar(
4646
.. note::
4747
For GMT >=6.5.0, the fontsizes of the colorbar x-label, x-annotations,
4848
and y-label are scaled based on the width of the colorbar following
49-
:math:`\sqrt{{colorbar\_width / 15}}`. To set a desired fontsize via the
49+
:math:`\sqrt{colorbar\_width / 15}`. To set a desired fontsize via the
5050
GMT default parameters :gmt-term:`FONT_ANNOT_PRIMARY`,
5151
:gmt-term:`FONT_ANNOT_SECONDARY`, and :gmt-term:`FONT_LABEL` (or jointly
5252
:gmt-term:`FONT`) users have to divide the desired fontsize by the value

pygmt/src/grdfill.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def grdfill( # noqa: PLR0913
121121
neighborfill
122122
Fill the holes with the nearest neighbor. Specify the search radius in pixels.
123123
If set to ``True``, the default search radius will be used
124-
(:math:`r^2 = \sqrt{{n^2 + m^2}}`, where (*n,m*) are the node dimensions of the
124+
(:math:`r^2 = \sqrt{n^2 + m^2}`, where (*n,m*) are the node dimensions of the
125125
grid).
126126
splinefill
127127
Fill the holes with a bicubic spline. Specify the tension value to use. If set
@@ -136,7 +136,7 @@ def grdfill( # noqa: PLR0913
136136
mode
137137
Specify the hole-filling algorithm to use. Choose from **c** for constant fill
138138
and append the constant value, **n** for nearest neighbor (and optionally append
139-
a search radius in pixels [default radius is :math:`r^2 = \sqrt{{ X^2 + Y^2 }}`,
139+
a search radius in pixels [default radius is :math:`r^2 = \sqrt{ X^2 + Y^2 }`,
140140
where (*X,Y*) are the node dimensions of the grid]), or **s** for bicubic spline
141141
(optionally append a *tension* parameter [Default is no tension]).
142142

pygmt/src/grdgradient.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def grdgradient(
6363
angle in the x,y plane measured in degrees positive clockwise from
6464
north (the positive y-direction) toward east (the positive x-direction). The
6565
negative of the directional derivative,
66-
:math:`-(\frac{{dz}}{{dx}}\sin(\mbox{{azim}}) + \
67-
\frac{{dz}}{{dy}}\cos(\mbox{{azim}}))`, is found; negation yields
66+
:math:`-(\frac{dz}{dx}\sin(\mbox{azim}) + \
67+
\frac{dz}{dy}\cos(\mbox{azim}))`, is found; negation yields
6868
positive values when the slope of :math:`z(x,y)` is downhill in the
6969
*azim* direction, the correct sense for shading the illumination of an
7070
image by a light source above the x,y plane shining from the *azim*
@@ -114,18 +114,18 @@ def grdgradient(
114114
given, it is set to the average of :math:`g`. The following forms are
115115
supported:
116116
117-
- **True**: Normalize using :math:`g_n = \mbox{{amp}}\
118-
(\frac{{g - \mbox{{offset}}}}{{max(|g - \mbox{{offset}}|)}})`
117+
- **True**: Normalize using :math:`g_n = \mbox{amp}\
118+
(\frac{g - \mbox{offset}{max(|g - \mbox{offset}|)})`
119119
- **e**: Normalize using a cumulative Laplace distribution yielding:
120-
:math:`g_n = \mbox{{amp}}(1 - \
121-
\exp{{(\sqrt{{2}}\frac{{g - \mbox{{offset}}}}{{\sigma}}))}}`, where
120+
:math:`g_n = \mbox{amp}(1 - \
121+
\exp{(\sqrt{2}\frac{g - \mbox{offset}{\sigma}))}`, where
122122
:math:`\sigma` is estimated using the L1 norm of
123-
:math:`(g - \mbox{{offset}})` if it is not given.
123+
:math:`(g - \mbox{offset})` if it is not given.
124124
- **t**: Normalize using a cumulative Cauchy distribution yielding:
125125
:math:`g_n = \
126-
\frac{{2(\mbox{{amp}})}}{{\pi}}(\tan^{{-1}}(\frac{{g - \
127-
\mbox{{offset}}}}{{\sigma}}))` where :math:`\sigma` is estimated
128-
using the L2 norm of :math:`(g - \mbox{{offset}})` if it is not
126+
\frac{2(\mbox{amp})}{\pi}(\tan^{-1}(\frac{g - \
127+
\mbox{offset}{\sigma}))` where :math:`\sigma` is estimated
128+
using the L2 norm of :math:`(g - \mbox{offset})` if it is not
129129
given.
130130
131131
As a final option, you may add **+a**\ *ambient* to add *ambient* to

pygmt/src/meca.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ def meca( # noqa: PLR0913
172172
| *mantissa*, *exponent*
173173
- | angles in degrees;
174174
| seismic moment is
175-
| :math:`mantissa * 10 ^ {{exponent}}`
175+
| :math:`mantissa * 10 ^ {exponent}`
176176
| in dyn cm
177177
* - ``"mt"``
178178
- seismic moment tensor
179179
- | *mrr*, *mtt*, *mff*,
180180
| *mrt*, *mrf*, *mtf*,
181181
| *exponent*
182182
- | moment components
183-
| in :math:`10 ^ {{exponent}}` dyn cm
183+
| in :math:`10 ^ {exponent}` dyn cm
184184
* - ``"partial"``
185185
- partial focal mechanism
186186
- | *strike1*, *dip1*, *strike2*,
@@ -194,7 +194,7 @@ def meca( # noqa: PLR0913
194194
| *n_value*, *n_azimuth*, *n_plunge*,
195195
| *p_value*, *p_azimuth*, *p_plunge*,
196196
| *exponent*
197-
- | values in :math:`10 ^ {{exponent}}` dyn cm;
197+
- | values in :math:`10 ^ {exponent}` dyn cm;
198198
| azimuths and plunges in degrees
199199
200200
Full GMT docs at :gmt-docs:`supplements/seis/meca.html`.

pygmt/src/nearneighbor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def nearneighbor(
5555
function and the averaging used is given by:
5656
5757
.. math::
58-
w(r_i) = \frac{{w_i}}{{1 + d(r_i) ^ 2}},
59-
\quad d(r) = \frac {{3r}}{{R}},
60-
\quad \bar{{z}} = \frac{{\sum_i^n w(r_i) z_i}}{{\sum_i^n w(r_i)}}
58+
w(r_i) = \frac{w_i}{1 + d(r_i) ^ 2},
59+
\quad d(r) = \frac {3r}{R},
60+
\quad \bar{z} = \frac{\sum_i^n w(r_i) z_i}{\sum_i^n w(r_i)}
6161
6262
where :math:`n` is the number of data points that satisfy the selection
6363
criteria and :math:`r_i` is the distance from the node to the *i*'th data

pygmt/src/project.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ def project( # noqa: PLR0913
8686
8787
Data can be selectively windowed by using the ``length`` and ``width``
8888
parameters. If ``width`` is used, the projection width is set to use only
89-
data with :math:`w_{{min}} < q < w_{{max}}`. If ``length`` is set, then
89+
data with :math:`w_{min} < q < w_{max}`. If ``length`` is set, then
9090
the length is set to use only those data with
91-
:math:`l_{{min}} < p < l_{{max}}`. If the ``endpoint`` parameter
91+
:math:`l_{min} < p < l_{max}`. If the ``endpoint`` parameter
9292
has been used to define the projection, then ``length="w"`` may be used to
9393
window the length of the projection to exactly the span from O to B.
9494
@@ -98,10 +98,10 @@ def project( # noqa: PLR0913
9898
x-axis. azimuth = 90 - theta.
9999
100100
No assumptions are made regarding the units for
101-
:math:`x, y, r, s, p, q, dist, l_{{min}}, l_{{max}}, w_{{min}}, w_{{max}}`.
101+
:math:`x, y, r, s, p, q, dist, l_{min}, l_{max}, w_{min}, w_{max}`.
102102
If ``unit`` is selected, map units are assumed and :math:`x, y, r, s` must
103103
be in degrees and
104-
:math:`p, q, dist, l_{{min}}, l_{{max}}, w_{{min}}, w_{{max}}`
104+
:math:`p, q, dist, l_{min}, l_{max}, w_{min}, w_{max}`
105105
will be in km.
106106
107107
Calculations of specific great-circle and geodesic distances or for
@@ -159,15 +159,15 @@ def project( # noqa: PLR0913
159159
through *cx*/*cy*, append **+c** to compute the required colatitude.
160160
Use ``center`` and ``endpoint`` to generate a circle that goes
161161
through the center and end point. Note, in this case the center and
162-
end point cannot be farther apart than :math:`2|\mbox{{colat}}|`.
162+
end point cannot be farther apart than :math:`2|\mbox{colat}|`.
163163
Finally, if you append **+h** then we will report the position of
164164
the pole as part of the segment header [Default is no header].
165165
**Note**: No input is read and the value of ``data``, ``x``, ``y``,
166166
and ``z`` is ignored if ``generate`` is used.
167167
length
168168
(*lmin*, *lmax*) or ``"limit"``.
169169
Project only those data whose *p* coordinate is within
170-
:math:`l_{{min}} < p < l_{{max}}`. If ``endpoint`` has been set, then you may
170+
:math:`l_{min} < p < l_{max}`. If ``endpoint`` has been set, then you may
171171
alternatively set it to ``"limit"`` to stay within the distance from ``center``
172172
to ``endpoint``.
173173
flat_earth : bool
@@ -176,7 +176,7 @@ def project( # noqa: PLR0913
176176
177177
unit : bool
178178
Set units for :math:`x, y, r, s` to degrees and
179-
:math:`p, q, dist, l_{{min}}, l_{{max}}, w_{{min}}, w_{{max}}` to km.
179+
:math:`p, q, dist, l_{min}, l_{max}, w_{min}, w_{max}` to km.
180180
[Default is ``False``; all arguments use the same units]
181181
182182
sort : bool
@@ -188,7 +188,7 @@ def project( # noqa: PLR0913
188188
width
189189
(*w_min*, *w_max*).
190190
Specify width controls for the projected points. Project only those points whose
191-
q coordinate is within :math:`w_{{min}} < q < w_{{max}}`.
191+
q coordinate is within :math:`w_{min} < q < w_{max}`.
192192
193193
ellipse : str
194194
*major*/*minor*/*azimuth* [**+e**\|\ **n**].

pygmt/src/surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def surface(
9999
when the maximum absolute change in any grid value is less than
100100
``convergence``. (Units same as data z units). Alternatively,
101101
give limit in percentage of root-mean-square (rms) deviation by
102-
appending %. [Default is scaled to :math:`10^{{-4}}` of the rms
102+
appending %. [Default is scaled to :math:`10^{-4}` of the rms
103103
deviation of the data from a best-fit (least-squares) plane.]
104104
This is the final convergence limit at the desired grid spacing;
105105
for intermediate (coarser) grids the effective convergence limit is

pygmt/src/tilemap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def tilemap( # noqa: PLR0913
8787
tile providers. Default is ``xyzservices.providers.OpenStreetMap.HOT``, i.e.
8888
OpenStreetMap Humanitarian web tiles.
8989
- A web tile provider in the form of a URL. The placeholders for the XYZ in the
90-
URL need to be ``{{x}}``, ``{{y}}``, ``{{z}}``, respectively. E.g.
91-
``https://{{s}}.tile.openstreetmap.org/{{z}}/{{x}}/{{y}}.png``.
90+
URL need to be ``{x}``, ``{y}``, ``{z}``, respectively. E.g.
91+
``https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png``.
9292
- A local file path. The file is read with :doc:`rasterio <rasterio:index>` and
9393
all bands are loaded into the basemap. See
9494
:doc:`contextily:working_with_local_files`.

0 commit comments

Comments
 (0)