Skip to content

Conversation

@yvonnefroehlich
Copy link
Member

Description of proposed changes

Currently we are using different version to write the thickness of lines. We use

  • singluar and plural
  • hype and no hypen

e.g., 2-points thick, 2 points thick, 2-point thick, 2 point thick

Click for details

Admin@A181941 /cygdrive/c/users/Admin/C2/EigeneDokumente/Studium/Promotion/01_GitHub/github_pygmt/pygmt/examples
$ grep "thick" */*/*
gallery/embellishments/scalebar.py:# Bottom Left: Add a thick scale bar
gallery/embellishments/scalebar.py:# by appending **+p** with the desired thickness, color, and style. To force
gallery/embellishments/scalebar.py:    # outline in darkgray (gray30) with a thickness of 0.5 points, and use
gallery/embellishments/solar.py:        pen="0.5p",  # Set the outline to be 0.5 points thick
gallery/images/cross_section.py:    # 0.8-points thick, black, outline.
gallery/images/cross_section.py:    pen="0.25p,black,solid",  # Draw a 0.25-points thick, black, solid outline
gallery/lines/decorated_lines.py:    # Adjust thickness, color, and style of the outline via "+p"
gallery/lines/decorated_lines.py:    # Here, we plot a 1-point thick, blue, dashed outline
gallery/lines/envelope.py:    # thickness and "gray30" color is used
gallery/lines/line_custom_cpt.py:    fig.plot(x=x, y=y, cmap=True, zvalue=zvalue, pen="thick,+z,-")
gallery/lines/line_segment_ends.py:        # Draw a 10-point thick line with 20-point long segments and gaps
gallery/lines/line_segment_ends.py:    # Draw a 1-point thick black solid line to highlight segment cap appearance
gallery/lines/line_segment_ends.py:        # Draw a 7-point thick solid line
gallery/lines/quoted_lines.py:    # Adjust thickness, color, and style of the outline
gallery/maps/borders.py:For example, to draw national boundaries with a line thickness of 1 point and
gallery/maps/shorelines.py:# Display the shorelines as black lines with 0.5 point thickness
gallery/seismology/meca.py:    # Draw a 0.5 points thick dark gray ("gray30") solid outline via
gallery/symbols/patterns.py:    # The square has a size of 2 centimeters with a 1 point thick, black outline.
projections/nongeo/cartesian_logarithmic.py:# Set the line thickness to "2p", the color to "black", and the style to "dashed"
projections/nongeo/cartesian_power.py:# Set the line thickness to "thick" (equals "1p", i.e. 1 point)
projections/nongeo/cartesian_power.py:fig.plot(x=xvalues, y=yvalues, pen="thick,black,solid")
tutorials/advanced/3d_perspective_image.py:    # Set the contour pen thickness to "0.1p"
tutorials/advanced/cartesian_histograms.py:    # Draw a 1-point thick, solid outline in "darkgray" around the bars
tutorials/advanced/cartesian_histograms.py:    # Draw a 1-point thick, dotted outline in "red3"
tutorials/advanced/cartesian_histograms.py:    # Draw a 1.5-points thick, dashed outline in "orange"
tutorials/advanced/contour_map.py:# contour lines, which are thicker and have the elevation/depth written on them, and
tutorials/advanced/focal_mechanisms.py:    # Use a 1-point thick, darkorange and solid line
tutorials/advanced/legends.py:# a 1-point thick, black, solid outline. The order of the legend entries (top to bottom)
tutorials/advanced/legends.py:# Add a box with a 2-points thick blue, solid outline and a white fill with a
tutorials/advanced/vectors.py:# thickness (``pen="2p"``) of the vector stem. A list of different
tutorials/advanced/vectors.py:# Other styling features such as vector stem thickness and head color
tutorials/advanced/working_with_panel.py:    # Add coastlines with a 0.25 points thick pen in "gray50"
tutorials/basics/coastlines.py:# pen configuration. For example, to plot just the coastlines with 0.5p thickness and
tutorials/basics/lines.py:# :meth:`pygmt.Figure.plot` method. By default, a 0.25-points thick, black, solid
tutorials/basics/lines.py:# Draw a 7-points thick, green line with style "-.-" (dash dot dash)
tutorials/basics/polygons.py:# are 0.25-points thick, black, and solid. In this example, the data points are chosen
tutorials/basics/polygons.py:# Use a 2-points thick, darkred, dashed outline
tutorials/basics/regions.py:    # Display the national borders and set the pen thickness to 0.5p
tutorials/basics/regions.py:    # Display the shorelines and set the pen thickness to 0.5p
tutorials/basics/text.py:# Add box with a seagreen, 1-point thick, solid outline

I think we should decide for one writting and stike to it in the docstrings and examples. So far this PR changes to singular with hypen.

Preview:

Guidelines

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash command is:

  • /format: automatically format and lint the code

@yvonnefroehlich yvonnefroehlich added this to the 0.18.0 milestone Dec 10, 2025
@yvonnefroehlich yvonnefroehlich self-assigned this Dec 10, 2025
@yvonnefroehlich yvonnefroehlich added documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog labels Dec 10, 2025
@seisman seisman merged commit 0282b2f into main Dec 11, 2025
9 of 10 checks passed
@seisman seisman deleted the fix-typos-97 branch December 11, 2025 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants