diff --git a/examples/gallery/embellishments/solar.py b/examples/gallery/embellishments/solar.py index d6daddab961..6b0935ce54d 100644 --- a/examples/gallery/embellishments/solar.py +++ b/examples/gallery/embellishments/solar.py @@ -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() diff --git a/examples/gallery/images/cross_section.py b/examples/gallery/images/cross_section.py index 959b9b3759b..0c9620fa54b 100644 --- a/examples/gallery/images/cross_section.py +++ b/examples/gallery/images/cross_section.py @@ -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"], @@ -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 ) diff --git a/examples/gallery/maps/shorelines.py b/examples/gallery/maps/shorelines.py index ed97f85c8b5..d9bbc6a5960 100644 --- a/examples/gallery/maps/shorelines.py +++ b/examples/gallery/maps/shorelines.py @@ -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() diff --git a/examples/gallery/seismology/meca.py b/examples/gallery/seismology/meca.py index 1866f1a79be..16b2ff3ec7f 100644 --- a/examples/gallery/seismology/meca.py +++ b/examples/gallery/seismology/meca.py @@ -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", ) diff --git a/examples/tutorials/advanced/3d_perspective_image.py b/examples/tutorials/advanced/3d_perspective_image.py index 5bef9b37a96..85cb8bbeb64 100644 --- a/examples/tutorials/advanced/3d_perspective_image.py +++ b/examples/tutorials/advanced/3d_perspective_image.py @@ -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"]) diff --git a/examples/tutorials/advanced/cartesian_histograms.py b/examples/tutorials/advanced/cartesian_histograms.py index c4ee692f41b..be2491ccfeb 100644 --- a/examples/tutorials/advanced/cartesian_histograms.py +++ b/examples/tutorials/advanced/cartesian_histograms.py @@ -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, diff --git a/examples/tutorials/advanced/legends.py b/examples/tutorials/advanced/legends.py index 1870e3a87d9..7b148d0229a 100644 --- a/examples/tutorials/advanced/legends.py +++ b/examples/tutorials/advanced/legends.py @@ -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")) diff --git a/examples/tutorials/advanced/working_with_panel.py b/examples/tutorials/advanced/working_with_panel.py index cf0786c3b5e..53a4d2ec5c4 100644 --- a/examples/tutorials/advanced/working_with_panel.py +++ b/examples/tutorials/advanced/working_with_panel.py @@ -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() diff --git a/examples/tutorials/basics/lines.py b/examples/tutorials/basics/lines.py index c0cbabbdd75..17e0ecca0a0 100644 --- a/examples/tutorials/basics/lines.py +++ b/examples/tutorials/basics/lines.py @@ -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() @@ -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() diff --git a/examples/tutorials/basics/polygons.py b/examples/tutorials/basics/polygons.py index dbd13775bdb..fd8e4c59661 100644 --- a/examples/tutorials/basics/polygons.py +++ b/examples/tutorials/basics/polygons.py @@ -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() @@ -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()