Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/gallery/embellishments/solar.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
terminator_datetime=reference_time,
# Set the fill for the night area to navy blue with 85 % transparency
fill="navyblue@85",
pen="0.5p", # Set the outline to be 0.5 points thick
pen="0.5p", # Set the outline to be 0.5-point thick
)

fig.show()
4 changes: 2 additions & 2 deletions examples/gallery/images/cross_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# directions, respectively; move the x-label above the horizontal colorbar ("+ml")
position="jBR+o0.7c/0.8c+h+w5c/0.3c+ml",
# Add a box around the colobar, filled in white and a 30 % transparency, with a
# 0.8-points thick, black, outline.
# 0.8-point thick, black, outline.
box=Box(pen="0.8p,black", fill="white@30"),
# Add x- and y-labels ("+l")
frame=["x+lElevation", "y+lm"],
Expand Down Expand Up @@ -103,7 +103,7 @@
x=[0, 15],
y=[0, 0],
fill="lightblue", # Fill the polygon in "lightblue"
pen="0.25p,black,solid", # Draw a 0.25-points thick, black, solid outline
pen="0.25p,black,solid", # Draw a 0.25-point thick, black, solid outline
close="+y-8000", # Force closed polygon
)

Expand Down
2 changes: 1 addition & 1 deletion examples/gallery/maps/shorelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
fig = pygmt.Figure()
# Make a global Mollweide map with automatic ticks
fig.basemap(region="g", projection="W15c", frame=True)
# Display the shorelines as black lines with 0.5 point thickness
# Display the shorelines as black lines with 0.5-point thickness
fig.coast(shorelines="0.5p,black")
fig.show()
2 changes: 1 addition & 1 deletion examples/gallery/seismology/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# Fill extensive quadrants with color "cornsilk"
# [Default is "white"]
extensionfill="cornsilk",
# Draw a 0.5 points thick dark gray ("gray30") solid outline via
# Draw a 0.5-point thick dark gray ("gray30") solid outline via
# the pen parameter [Default is "0.25p,black,solid"]
pen="0.5p,gray30,solid",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/advanced/3d_perspective_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
surftype="s",
cmap="geo",
plane="1000+ggrey",
# Set the contour pen thickness to "0.1p"
# Set the contour pen thickness to 0.1 points
contour_pen="0.1p",
)
fig.colorbar(perspective=True, frame=["a500", "x+lElevation", "y+lm"])
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/advanced/cartesian_histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
frame=["WSne", "xaf10", "ya1f1+lCounts"],
data=data02,
series=10,
# Draw a 1.5-points thick, dashed outline in "orange"
# Draw a 1.5-point thick, dashed outline in "orange"
pen="1.5p,orange,dashed",
histtype=0,
stairs=True,
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/advanced/legends.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
fig.plot(x=1, y=0, style="t0.3c", fill="pink", pen="black", label="pink triangle")
fig.plot(x=[-3, 3], y=[-2, -2], pen="darkred", label="darkred line")

# Add a box with a 2-points thick blue, solid outline and a white fill with a
# Add a box with a 2-point thick blue, solid outline and a white fill with a
# transparency of 30 percent ("@30").
fig.legend(position="jTL+o0.3c/0.2c", box=Box(pen="2p,blue", fill="white@30"))

Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/advanced/working_with_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
frame="g30", # Add frame and gridlines in steps of 30 degrees on top
land="gray", # Color land masses in "gray"
water="lightblue", # Color water masses in "lightblue"
# Add coastlines with a 0.25 points thick pen in "gray50"
# Add coastlines with a 0.25-point thick pen in "gray50"
shorelines="1/0.25p,gray50",
)
fig.show()
Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/basics/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# Create a Cartesian figure using the :meth:`pygmt.Figure.basemap` method. Pass lists
# containing two values to the ``x`` and ``y`` parameters of the
# :meth:`pygmt.Figure.plot` method. By default, a 0.25-points thick, black, solid
# :meth:`pygmt.Figure.plot` method. By default, a 0.25-point thick, black, solid
# line is drawn between these two data points.

fig = pygmt.Figure()
Expand Down Expand Up @@ -96,7 +96,7 @@
fig = pygmt.Figure()
fig.basemap(region=[0, 10, 0, 10], projection="X15c/10c", frame=True)

# Draw a 7-points thick, green line with style "-.-" (dash dot dash)
# Draw a 7-point thick, green line with style "-.-" (dash dot dash)
fig.plot(x=[1, 8], y=[3, 9], pen="7p,green,-.-")

fig.show()
Expand Down
4 changes: 2 additions & 2 deletions examples/tutorials/basics/polygons.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Create a Cartesian plot via the :meth:`pygmt.Figure.basemap` method. Pass arrays to
# the ``x`` and ``y`` parameters of the :meth:`pygmt.Figure.plot` method. Without
# further adjustments, lines are drawn between the data points. By default, the lines
# are 0.25-points thick, black, and solid. In this example, the data points are chosen
# are 0.25-point thick, black, and solid. In this example, the data points are chosen
# to make the lines form a polygon.

fig = pygmt.Figure()
Expand All @@ -44,7 +44,7 @@

fig = pygmt.Figure()
fig.basemap(region=[-5, 5, -5, 5], projection="X5c", frame=True)
# Use a 2-points thick, darkred, dashed outline
# Use a 2-point thick, darkred, dashed outline
fig.plot(x=x, y=y, pen="2p,darkred,dashed")
fig.show()

Expand Down