Discussion:
how to use new text style in pstext?
Mikhail Tchernychev
2014-06-26 20:50:34 UTC
Permalink
Hi,

I am lost. I am trying to adjust pstext calls to the new 5.1.1 style but it seems
it does not understand it at all.

Here is the script:

#/usr/bin/bash
output=test.ps
gmt pstext -R-10/10/-10/10  -Jx1 <<END > $output
0 3  18p,Helvetica  45   LB  Old targets
END


It supposed to draw text at (0,3) with 18p Helvetica font
at 45 degrees, but it draws string "8p,Helvetica  45   LB  Old targets"
instead.

How pstext recognizes new format?

It supposed to be


 x, y[, font, angle, justify], text

But it does not work no matter what.

Old format works, but gives warning messages.

 
Best Regards,

Mikhail Tchernychev

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.
Marcelo Banik
2014-06-26 21:09:20 UTC
Permalink
Hi Mikhail,

You must to include option -F+f+a+j
Try:
gmt pstext -F+f+a+j -R-10/10/-10/10 -Jx1 <<END > $output

0 3 18p,Helvetica 45 LB Old targets
END

Regards,

Marcelo

PS: sending again, including gmt list.



On Thu, Jun 26, 2014 at 5:50 PM, Mikhail Tchernychev <
Post by Mikhail Tchernychev
Hi,
I am lost. I am trying to adjust pstext calls to the new 5.1.1 style but it seems
it does not understand it at all.
#/usr/bin/bash
output=test.ps
gmt pstext -R-10/10/-10/10 -Jx1 <<END > $output
0 3 18p,Helvetica 45 LB Old targets
END
It supposed to draw text at (0,3) with 18p Helvetica font
at 45 degrees, but it draws string "8p,Helvetica 45 LB Old targets"
instead.
How pstext recognizes new format?
It supposed to be
x, y[, font, angle, justify], text
But it does not work no matter what.
Old format works, but gives warning messages.
Best Regards,
Mikhail Tchernychev
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.
Loading...