Bug #910

psxy vector head on line

Added by Stine over 1 year ago. Updated over 1 year ago.

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

100%

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

Description

Hi,

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
EOF

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?

Associated revisions

Revision 16459
Added by Paul over 1 year ago

Fix issue #910

History

#1 Updated by Joaquim over 1 year ago

Please, use the Forum to ask questions.

#2 Updated by Joaquim over 1 year 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 1 year 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 1 year ago

  • Status changed from Resolved to Closed

Closed as fixed.

Also available in: Atom PDF