Skip to content

Commit 0282b2f

Browse files
DOC: Make writting point thickness consistent (#4264)
1 parent d036528 commit 0282b2f

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

examples/gallery/embellishments/solar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
terminator_datetime=reference_time,
3333
# Set the fill for the night area to navy blue with 85 % transparency
3434
fill="navyblue@85",
35-
pen="0.5p", # Set the outline to be 0.5 points thick
35+
pen="0.5p", # Set the outline to be 0.5-point thick
3636
)
3737

3838
fig.show()

examples/gallery/images/cross_section.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
# directions, respectively; move the x-label above the horizontal colorbar ("+ml")
4747
position="jBR+o0.7c/0.8c+h+w5c/0.3c+ml",
4848
# Add a box around the colobar, filled in white and a 30 % transparency, with a
49-
# 0.8-points thick, black, outline.
49+
# 0.8-point thick, black, outline.
5050
box=Box(pen="0.8p,black", fill="white@30"),
5151
# Add x- and y-labels ("+l")
5252
frame=["x+lElevation", "y+lm"],
@@ -103,7 +103,7 @@
103103
x=[0, 15],
104104
y=[0, 0],
105105
fill="lightblue", # Fill the polygon in "lightblue"
106-
pen="0.25p,black,solid", # Draw a 0.25-points thick, black, solid outline
106+
pen="0.25p,black,solid", # Draw a 0.25-point thick, black, solid outline
107107
close="+y-8000", # Force closed polygon
108108
)
109109

examples/gallery/maps/shorelines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
fig = pygmt.Figure()
1212
# Make a global Mollweide map with automatic ticks
1313
fig.basemap(region="g", projection="W15c", frame=True)
14-
# Display the shorelines as black lines with 0.5 point thickness
14+
# Display the shorelines as black lines with 0.5-point thickness
1515
fig.coast(shorelines="0.5p,black")
1616
fig.show()

examples/gallery/seismology/meca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# Fill extensive quadrants with color "cornsilk"
4646
# [Default is "white"]
4747
extensionfill="cornsilk",
48-
# Draw a 0.5 points thick dark gray ("gray30") solid outline via
48+
# Draw a 0.5-point thick dark gray ("gray30") solid outline via
4949
# the pen parameter [Default is "0.25p,black,solid"]
5050
pen="0.5p,gray30,solid",
5151
)

examples/tutorials/advanced/3d_perspective_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
surftype="s",
9292
cmap="geo",
9393
plane="1000+ggrey",
94-
# Set the contour pen thickness to "0.1p"
94+
# Set the contour pen thickness to 0.1 points
9595
contour_pen="0.1p",
9696
)
9797
fig.colorbar(perspective=True, frame=["a500", "x+lElevation", "y+lm"])

examples/tutorials/advanced/cartesian_histograms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
frame=["WSne", "xaf10", "ya1f1+lCounts"],
121121
data=data02,
122122
series=10,
123-
# Draw a 1.5-points thick, dashed outline in "orange"
123+
# Draw a 1.5-point thick, dashed outline in "orange"
124124
pen="1.5p,orange,dashed",
125125
histtype=0,
126126
stairs=True,

examples/tutorials/advanced/legends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
fig.plot(x=1, y=0, style="t0.3c", fill="pink", pen="black", label="pink triangle")
9090
fig.plot(x=[-3, 3], y=[-2, -2], pen="darkred", label="darkred line")
9191

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

examples/tutorials/advanced/working_with_panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
frame="g30", # Add frame and gridlines in steps of 30 degrees on top
5151
land="gray", # Color land masses in "gray"
5252
water="lightblue", # Color water masses in "lightblue"
53-
# Add coastlines with a 0.25 points thick pen in "gray50"
53+
# Add coastlines with a 0.25-point thick pen in "gray50"
5454
shorelines="1/0.25p,gray50",
5555
)
5656
fig.show()

examples/tutorials/basics/lines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
# Create a Cartesian figure using the :meth:`pygmt.Figure.basemap` method. Pass lists
1616
# containing two values to the ``x`` and ``y`` parameters of the
17-
# :meth:`pygmt.Figure.plot` method. By default, a 0.25-points thick, black, solid
17+
# :meth:`pygmt.Figure.plot` method. By default, a 0.25-point thick, black, solid
1818
# line is drawn between these two data points.
1919

2020
fig = pygmt.Figure()
@@ -96,7 +96,7 @@
9696
fig = pygmt.Figure()
9797
fig.basemap(region=[0, 10, 0, 10], projection="X15c/10c", frame=True)
9898

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

102102
fig.show()

examples/tutorials/basics/polygons.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Create a Cartesian plot via the :meth:`pygmt.Figure.basemap` method. Pass arrays to
3030
# the ``x`` and ``y`` parameters of the :meth:`pygmt.Figure.plot` method. Without
3131
# further adjustments, lines are drawn between the data points. By default, the lines
32-
# are 0.25-points thick, black, and solid. In this example, the data points are chosen
32+
# are 0.25-point thick, black, and solid. In this example, the data points are chosen
3333
# to make the lines form a polygon.
3434

3535
fig = pygmt.Figure()
@@ -44,7 +44,7 @@
4444

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

0 commit comments

Comments
 (0)