Discussion:
setting vector head shape
Eric Lindsey
2014-08-28 18:23:35 UTC
Permalink
Dear all,

Is it possible in GMT5 to control the shape of vector heads? I'd like to
make a short, fat vector with a head wider than the bar, but keep finding
that the shorter it gets, the smaller the head becomes (even if I don't set
the +n option...). I can make the bar thick (eg. using -W25p), but the head
remains the same size, leaving me with a head that's thinner than the bar!
For example:

echo "0 0 1 .5 " |gmt psvelo -Jx0.4/0.4 -R-10/10/-10/10 -B2g10 -W25p -L
-Se3/0/18 -A30p+e -P -V > test.ps

Changing the head size directly (eg. -A90p+e) makes the head wider, but too
long. Ideally, I'd like to make something more like this arrow:

Loading Image...

I'm stumped -- there must be a clean way to do this.

Eric

Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Paul Wessel
2014-08-28 18:50:49 UTC
Permalink
You can use the +a<angle> modifier to increase the angle at the vector head apex. it defaults to 30 degrees. Giving it 150 and a shorter length might work.
-p
Post by Eric Lindsey
Dear all,
echo "0 0 1 .5 " |gmt psvelo -Jx0.4/0.4 -R-10/10/-10/10 -B2g10 -W25p -L -Se3/0/18 -A30p+e -P -V > test.ps
http://www.wpclipart.com/blanks/arrows/arrows_BW/arrow_hollow_right.png
I'm stumped -- there must be a clean way to do this.
Eric
Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Eric Lindsey
2014-08-28 22:28:53 UTC
Permalink
Aha, this looks much better! Thanks.

Eric
Post by Paul Wessel
You can use the +a<angle> modifier to increase the angle at the vector
head apex. it defaults to 30 degrees. Giving it 150 and a shorter length
might work.
-p
Dear all,
Is it possible in GMT5 to control the shape of vector heads? I'd like to
make a short, fat vector with a head wider than the bar, but keep finding
that the shorter it gets, the smaller the head becomes (even if I don't set
the +n option...). I can make the bar thick (eg. using -W25p), but the head
remains the same size, leaving me with a head that's thinner than the bar!
echo "0 0 1 .5 " |gmt psvelo -Jx0.4/0.4 -R-10/10/-10/10 -B2g10 -W25p -L
-Se3/0/18 -A30p+e -P -V > test.ps
Changing the head size directly (eg. -A90p+e) makes the head wider, but
http://www.wpclipart.com/blanks/arrows/arrows_BW/arrow_hollow_right.png
I'm stumped -- there must be a clean way to do this.
Eric
Mailing list for GMT discussions of all kinds. If you are not sure you
have found a bug, discuss it here first. To formally report bugs or request
features, please register and add New Issue on gmt.soest.hawaii.edu To
unsubscribe, send the message "signoff gmt-help" to
2014 - please use forum on gmt.soest.hawaii.edu instead.
Mailing list for GMT discussions of all kinds. If you are not sure you
have found a bug, discuss it here first. To formally report bugs or request
features, please register and add New Issue on gmt.soest.hawaii.edu To
unsubscribe, send the message "signoff gmt-help" to
2014 - please use forum on gmt.soest.hawaii.edu instead.
Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first.
To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu
To unsubscribe, send the message "signoff gmt-help" to ***@lists.hawaii.edu
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.
Continue reading on narkive:
Loading...