Skip to content

psxy: Add broken arrows#8967

Merged
joa-quim merged 4 commits intomasterfrom
broken-arrows
Apr 10, 2026
Merged

psxy: Add broken arrows#8967
joa-quim merged 4 commits intomasterfrom
broken-arrows

Conversation

@joa-quim
Copy link
Copy Markdown
Member

From (new) docs

When used together with -Sv (Cartesian vectors), the x and y directives produce broken (right-angle elbow) arrows: instead of a straight line from tail to tip, the vector is drawn along two perpendicular legs meeting at a corner. x draws the horizontal leg first, then the vertical leg; y draws the vertical leg first, then the horizontal leg. The arrowhead is placed at the tip.

Co-authored (mostly) by Claude.

Example

echo 0 0 45 3 | build\src\gmt psxy -R-5/5/-5/5 -JX10c -Sv0.3c+e -Ay -W1p -Gred -Ba -png lixo

Note, the test/psxy/elbowvec.sh file needs to be set to execution mode (I can't do it)

lixo

@joa-quim joa-quim requested a review from a team April 10, 2026 16:51
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 10, 2026

Summary of changed images

This is an auto-generated report of images that have changed on the DVC remote

Status Path
added test/baseline/psxy/elbowvec.ps
modified test/baseline/psxy/

Image diff(s)

Details

Added images

  • test/baseline/psxy/elbowvec.png

Modified images

Path Old New

Report last updated at commit c10caea

@Esteban82 Esteban82 added the add-changelog Add PR to the changelog label Apr 10, 2026
Copy link
Copy Markdown
Member

@Esteban82 Esteban82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works.

@Esteban82 Esteban82 added the enhancement Improving an existing feature label Apr 10, 2026
@joa-quim joa-quim enabled auto-merge (squash) April 10, 2026 17:55
@joa-quim joa-quim disabled auto-merge April 10, 2026 18:02
@joa-quim joa-quim merged commit 44d1af5 into master Apr 10, 2026
10 of 14 checks passed
@joa-quim joa-quim deleted the broken-arrows branch April 10, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants