Bug #910

psxy vector head on line

Added by Stine over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:2016-05-24
Priority:NormalDue date:
Assignee:Paul% Done:


Target version:Candidate for next bugfix release
Affected version:5.x-svn Platform:



I would like to plot a vector head on a straight line given x, y coordinates.

The following command (rewritten from an example in the psxy documentation) fails:

gmt psxy -R0/50/-50/50 -JX6i -W0.5p+v0.15i -Baf << EOF > map.ps 
10 10
30 -20

No line is plotted at all.

In the psxy documentation under the -W argument it is stated:

+vvspecs will place a vector head at the ends of the lines. You can use +vb and +ve to specify separate vector specs at each end [shared specs]. See the Vector Attributes for more information.

Using the option -W0.1p+ve gives a warning: Warning: Length unit a not supported - revert to default unit [cm] and only the straight line is plotted.

Am I doing something wrong?


#1 Updated by Joaquim over 5 years ago

Please, use the Forum to ask questions.

#2 Updated by Joaquim over 5 years ago

  • Tracker changed from Support to Bug
  • Status changed from New to In Progress
  • Affected version set to 5.x-svn

This is actually a bug. A map projection must be used in order this to work.

#3 Updated by Paul over 5 years ago

  • Status changed from In Progress to Resolved
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release
  • % Done changed from 0 to 100

Fixed in r16460. Now, even a Cartesian line of just 2 points gets resampled first to make sure lines that are potentially shortened due to vector heads will have 3+ points.

#4 Updated by Paul over 5 years ago

  • Status changed from Resolved to Closed

Closed as fixed.

Also available in: Atom PDF