Skip to content

Wrong line width when setting pen style in MAP_GRID_PEN #8647

Closed

Description

@ZMAlt

The original post is here.

gmt basemap -Rd -JQ5i -Bafg --MAP_GRID_PEN=4p,black,dotted  -png test1
gmt basemap -Rd -JQ5i -Bafg --MAP_GRID_PEN=4p,black         -png test2

The first line gives:
test1

The second line gives:
test2

System information

  • Operating system: macos
  • GMT version (gmt --version): gmt 6.5

Activity

  1. added
    bug
    on Dec 31, 2024
  2. joa-quim commented on Jan 2, 2025

    @joa-quim
    Member

    This is a modern mode issue. In classic we get

    psbasemap -Rd -JQ5i -Bafg --MAP_GRID_PEN=4p,black,dotted -P > lixo.ps
    

    lixo

  3. Esteban82 commented on Jan 3, 2025

    @Esteban82
    Member

    I think that "it is not a bug it is a feature". See comment on the forum .

  4. joa-quim commented on Jan 3, 2025

    @joa-quim
    Member

    No, it is a bug nevertheless. And one very boring to catch. Tried a bit but gave up.

  5. joa-quim commented on May 26, 2026

    @joa-quim
    Member

    @ZMAlt PR #9043 may have solved this (it did for the current example) but maybe there is more. It would be good if could test it a bit more

  6. ZMAlt commented on May 27, 2026

    @ZMAlt
    ContributorAuthor

    It also works in other examples. Thank you.

  7. added a commit that references this issue on May 27, 2026
    6e83683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmodern mode issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions