Skip to content

Fix a few typos in the examples #2025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 26, 2022
2 changes: 1 addition & 1 deletion examples/gallery/embellishments/solar.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Create a figure showing the global region on a Mollweide projection
# Land color is set to dark green and water color is set to light blue
fig.coast(region="d", projection="W0/15c", land="darkgreen", water="lightblue")
# Set a time for the day-night terminator and twilights, 1700 UTC on
# Set a time for the day-night terminator and twilights, 17:00 UTC on
# January 1, 2000
terminator_datetime = datetime.datetime(
year=2000, month=1, day=1, hour=17, minute=0, second=0
Expand Down
4 changes: 2 additions & 2 deletions examples/gallery/lines/great_circles.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
# plot individual points as orange inverted triangles atop
fig.plot(x=points2.r, y=points2.s, style="i.6c", color="orange", pen="1p")

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

fig.show()
5 changes: 2 additions & 3 deletions examples/get-started/first_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@
# title to "Title" would be ``"+tTitle"``).
#
# To pass multiple arguments to ``frame``, a list can be used, as shown in the
# example below. This format uses ``frame`` to set both the axes gridlines and
# the figure title.
#
# example below. This format uses ``frame`` to set both the axes annotations
# and the figure title.

fig = pygmt.Figure()
fig.coast(
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/advanced/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# ----------------------------
#
# The ``MAP_FRAME_TYPE`` parameter specifies the style of map frame to use, of
# which there are 5 options: ``fancy`` (default, seen above), ``fancy+``,
# which there are 5 options: ``fancy`` (default, see above), ``fancy+``,
# ``plain``, ``graph`` (which does not apply to geographical maps) and
# ``inside``.
#
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/advanced/contour_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# It plots annotated contour lines, which are thicker and have the
# elevation/depth written on them, and unannotated contour lines.
# In the example below, the default contour line intervals are 500 meters,
# with an annotated contour line every 1000 meters.
# with an annotated contour line every 1,000 meters.
# By default, it plots the map with the
# equidistant cylindrical projection and with no frame.

Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/advanced/date_time_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@
# by a string formatted as ``hh:mm:ss`` where each ``:`` delineated section
# marking the two digit hour value, two digit minute value, and two digit
# second value respectively. The figure in the following example is plotted
# over a horizontal range of one year from 1/1/2016 to 1/1/2017.
# over a horizontal range of one year from 2016-01-01 to 2017-01-01.

x = ["2016-02-01", "2016-06-04T14", "2016-10-04T00:00:15", "2016-12-01T05:00:15"]
y = [1, 3, 5, 2]
fig = pygmt.Figure()
fig.plot(
projection="X10c/5c",
region=["2016-01-01", "2017-01-1", 0, 6],
region=["2016-01-01", "2017-01-01", 0, 6],
frame=["WSen", "afg"],
x=x,
y=y,
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/advanced/grid_equalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# ----------------
# Load the sample Earth relief data for a region around Yosemite valley
# and use :meth:`pygmt.grd2xyz` to create a :class:`pandas.Series` with the
# z values.
# z-values.

grid = pygmt.datasets.load_earth_relief(
resolution="03s", region=[-119.825, -119.4, 37.6, 37.825]
Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/advanced/insets.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
# of the inset is set to one of the 9 anchors (bottom-middle-top and
# left-center-right). In the example below, ``BL`` sets the inset to the bottom
# left. The ``box`` parameter can set the fill and border of the inset. In the
# example below, ``+pblack`` sets the border color to black and ``+gred`` sets
# the fill to red.
# example below, ``+pblack`` sets the border color to black and ``+glightred``
# sets the fill to light red.

fig = pygmt.Figure()
fig.coast(
Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/advanced/vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
fig.show()

###############################################################################
# In this example, cartesian vectors are plotted over a Mercator
# In this example, Cartesian vectors are plotted over a Mercator
# projection of the continental US. The x values represent the
# longitude and y values represent the latitude where the vector starts.
#
Expand Down Expand Up @@ -209,7 +209,7 @@
fig.show()

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

Expand Down