Skip to content

Line in text -D..+v is not clipped #3927

Closed

Description

@PaulWessel

When drawing a line from the point to the offset text with -Djoffset+vpen, unless you fill in the text box the line shows up:

echo "1.91739628589 1.59140756803 T" | gmt text -R-5/5/-5/5 -Jx1 -D-5c+v0.5p,black -F+f32,Helvetica,black+a0+jCB -W0.25p,red -png

map
map

It would be better to set up a clip path if no fill is used so that the line stops at the (imaginary or drawn) textbox.

[Moved from old GMT wiki issues from 2013].

Activity

  1. added
    bug
    on Aug 11, 2020
  2. self-assigned this
    on Aug 11, 2020
  3. joa-quim commented on May 25, 2026

    @joa-quim
    Member

    With #9035 it now produces

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions