Skip to content

Commit f389a4b

Browse files
Fix a few typos in the examples (#2025)
1 parent 25530d9 commit f389a4b

File tree

9 files changed

+14
-15
lines changed

9 files changed

+14
-15
lines changed

examples/gallery/embellishments/solar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Create a figure showing the global region on a Mollweide projection
1717
# Land color is set to dark green and water color is set to light blue
1818
fig.coast(region="d", projection="W0/15c", land="darkgreen", water="lightblue")
19-
# Set a time for the day-night terminator and twilights, 1700 UTC on
19+
# Set a time for the day-night terminator and twilights, 17:00 UTC on
2020
# January 1, 2000
2121
terminator_datetime = datetime.datetime(
2222
year=2000, month=1, day=1, hour=17, minute=0, second=0

examples/gallery/lines/great_circles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
# plot individual points as orange inverted triangles atop
3636
fig.plot(x=points2.r, y=points2.s, style="i.6c", color="orange", pen="1p")
3737

38-
# plot individual points of third great circle as red line
38+
# plot individual points of third great circle as red3 line
3939
fig.plot(x=points3.r, y=points3.s, pen="2p,red3")
40-
# plot individual points as red circles atop
40+
# plot individual points as red3 circles atop
4141
fig.plot(x=points3.r, y=points3.s, style="c.3c", color="red3", pen="1p")
4242

4343
fig.show()

examples/get-started/first_figure.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,8 @@
146146
# title to "Title" would be ``"+tTitle"``).
147147
#
148148
# To pass multiple arguments to ``frame``, a list can be used, as shown in the
149-
# example below. This format uses ``frame`` to set both the axes gridlines and
150-
# the figure title.
151-
#
149+
# example below. This format uses ``frame`` to set both the axes annotations
150+
# and the figure title.
152151

153152
fig = pygmt.Figure()
154153
fig.coast(

examples/tutorials/advanced/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# ----------------------------
3232
#
3333
# The ``MAP_FRAME_TYPE`` parameter specifies the style of map frame to use, of
34-
# which there are 5 options: ``fancy`` (default, seen above), ``fancy+``,
34+
# which there are 5 options: ``fancy`` (default, see above), ``fancy+``,
3535
# ``plain``, ``graph`` (which does not apply to geographical maps) and
3636
# ``inside``.
3737
#

examples/tutorials/advanced/contour_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# It plots annotated contour lines, which are thicker and have the
2020
# elevation/depth written on them, and unannotated contour lines.
2121
# In the example below, the default contour line intervals are 500 meters,
22-
# with an annotated contour line every 1000 meters.
22+
# with an annotated contour line every 1,000 meters.
2323
# By default, it plots the map with the
2424
# equidistant cylindrical projection and with no frame.
2525

examples/tutorials/advanced/date_time_charts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@
107107
# by a string formatted as ``hh:mm:ss`` where each ``:`` delineated section
108108
# marking the two digit hour value, two digit minute value, and two digit
109109
# second value respectively. The figure in the following example is plotted
110-
# over a horizontal range of one year from 1/1/2016 to 1/1/2017.
110+
# over a horizontal range of one year from 2016-01-01 to 2017-01-01.
111111

112112
x = ["2016-02-01", "2016-06-04T14", "2016-10-04T00:00:15", "2016-12-01T05:00:15"]
113113
y = [1, 3, 5, 2]
114114
fig = pygmt.Figure()
115115
fig.plot(
116116
projection="X10c/5c",
117-
region=["2016-01-01", "2017-01-1", 0, 6],
117+
region=["2016-01-01", "2017-01-01", 0, 6],
118118
frame=["WSen", "afg"],
119119
x=x,
120120
y=y,

examples/tutorials/advanced/grid_equalization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# ----------------
1414
# Load the sample Earth relief data for a region around Yosemite valley
1515
# and use :meth:`pygmt.grd2xyz` to create a :class:`pandas.Series` with the
16-
# z values.
16+
# z-values.
1717

1818
grid = pygmt.datasets.load_earth_relief(
1919
resolution="03s", region=[-119.825, -119.4, 37.6, 37.825]

examples/tutorials/advanced/insets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
# of the inset is set to one of the 9 anchors (bottom-middle-top and
3838
# left-center-right). In the example below, ``BL`` sets the inset to the bottom
3939
# left. The ``box`` parameter can set the fill and border of the inset. In the
40-
# example below, ``+pblack`` sets the border color to black and ``+gred`` sets
41-
# the fill to red.
40+
# example below, ``+pblack`` sets the border color to black and ``+glightred``
41+
# sets the fill to light red.
4242

4343
fig = pygmt.Figure()
4444
fig.coast(

examples/tutorials/advanced/vectors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
fig.show()
157157

158158
###############################################################################
159-
# In this example, cartesian vectors are plotted over a Mercator
159+
# In this example, Cartesian vectors are plotted over a Mercator
160160
# projection of the continental US. The x values represent the
161161
# longitude and y values represent the latitude where the vector starts.
162162
#
@@ -209,7 +209,7 @@
209209
fig.show()
210210

211211
###############################################################################
212-
# Another example of plotting cartesian vectors over a coast plot. This time a
212+
# Another example of plotting Cartesian vectors over a coast plot. This time a
213213
# Transverse Mercator projection is used. Additionally, :func:`numpy.linspace`
214214
# is used to create 5 vectors with equal stops.
215215

0 commit comments

Comments
 (0)