Re: pstext GMT5

Matthew Bilskie <[email protected]> Thu, 21 Aug 2014 15:03:54 -0400
Newsgroups gmane.comp.gis.gmt.user
Message-ID <CACH3wAeaDuPnhJ_Dnv0q86A_XKSLD7rGk6A1z8M-b3hZVJ7wXw@mail.gmail.com>
--089e012297c02f013005012864b8
Content-Type: text/plain; charset=UTF-8

Thanks, Paul. I have it working now!

Matt


On Thu, Aug 21, 2014 at 2:38 PM, Paul Wessel <[email protected]> wrote:

> Matthew-
>
> If you want to stick with GMT4 format for now you can, but you are using a
> mix of things so pstext must assume you are using GMT5 format for input,
> hence your result.
>
> GMT4 format is: x y size angle font justification text
>
> As you can see you have a font name for angle, Black for font, 0 for
> justification, etc etc so it will instead assume you are giving it x y text
>
> Fonts are specified as one item; see the GMT5 documentation on fonts.  An
> example would be 12p,Helvetica,black
>
> GMT5 lets you place all constant parameters on the command line instead of
> in the file.  If all your labels had the same specs except for location and
> text then you would just use
> -82.8 30.3 Florida
> and use -F+f12p,Helvetica,black+jBL to set those two parameters (the zero
> angle is default, i.e. same as adding +a0).  If you instead want to read
> any of those items from the data file then you leave off the arguments,
> i.e. -F+f+a+j would expect font, angle, and justification to follow x,y, in
> that order.
> If so then the equivalent GMT5 file would look like
>
> -82.8 30.3 12p,Helvetica,black 0 BL Florida
>
> -p
>
> On Aug 21, 2014, at 2:57 AM, Matthew Bilskie <[email protected]>
> wrote:
>
> > Hi all,
> >
> > I am trying to understand the new format for the textfile used in
> pstext. For example, I use an input file like the following:
> >
> > -82.8 30.3 12 Helvetica Black 0 BL Florida
> >
> > However, the text "12 Helvetica Black 0 BL Florida" plots at -82.8 30.3.
> >
> > I have read (and reread) the man page on pstext, but cannot seem to
> figure it out.
> >
> > Thanks in advance.
> >
> > Cheers
> >
> >
> > Matthew Bilskie, E.I.
> > Coastal Hydroscience Analysis, Modeling & Predictive Simulations
> Laboratory
> > www.champs.cecs.ucf.edu
> > www.mattbilskie.com
> > University of Central Florida
> > Civil, Environmental, & Construction Engineering Department
> > 12800 Pegasus Drive, Suite 211
> > Orlando, FL 32816-2450
> > 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
> [email protected] Note: gmt-help will become obsolete on Sept 1,
> 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
> [email protected]
> Note: gmt-help will become obsolete on Sept 1, 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 [email protected]
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

--089e012297c02f013005012864b8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks, Paul. I have it working now!<div class=3D"gmail_ex=
tra"><br></div><div class=3D"gmail_extra">Matt<br>
<br><br><div class=3D"gmail_quote">On Thu, Aug 21, 2014 at 2:38 PM, Paul We=
ssel <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"=
_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gm=
ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex">

Matthew-<br>
<br>
If you want to stick with GMT4 format for now you can, but you are using a =
mix of things so pstext must assume you are using GMT5 format for input, he=
nce your result.<br>
<br>
GMT4 format is: x y size angle font justification text<br>
<br>
As you can see you have a font name for angle, Black for font, 0 for justif=
ication, etc etc so it will instead assume you are giving it x y text<br>
<br>
Fonts are specified as one item; see the GMT5 documentation on fonts.=C2=A0=
 An example would be 12p,Helvetica,black<br>
<br>
GMT5 lets you place all constant parameters on the command line instead of =
in the file.=C2=A0 If all your labels had the same specs except for locatio=
n and text then you would just use<br>
-82.8 30.3 Florida<br>
and use -F+f12p,Helvetica,black+jBL to set those two parameters (the zero a=
ngle is default, i.e. same as adding +a0).=C2=A0 If you instead want to rea=
d any of those items from the data file then you leave off the arguments, i=
.e. -F+f+a+j would expect font, angle, and justification to follow x,y, in =
that order.<br>


If so then the equivalent GMT5 file would look like<br>
<br>
-82.8 30.3 12p,Helvetica,black 0 BL Florida<br>
<br>
-p<br>
<div><div class=3D"h5"><br>
On Aug 21, 2014, at 2:57 AM, Matthew Bilskie &lt;<a href=3D"mailto:matt.bil=
[email protected]">[email protected]</a>&gt; wrote:<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I am trying to understand the new format for the textfile used in pste=
xt. For example, I use an input file like the following:<br>
&gt;<br>
&gt; -82.8 30.3 12 Helvetica Black 0 BL Florida<br>
&gt;<br>
&gt; However, the text &quot;12 Helvetica Black 0 BL Florida&quot; plots at=
 -82.8 30.3.<br>
&gt;<br>
&gt; I have read (and reread) the man page on pstext, but cannot seem to fi=
gure it out.<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; Cheers<br>
&gt;<br>
&gt;<br>
&gt; Matthew Bilskie, E.I.<br>
&gt; Coastal Hydroscience Analysis, Modeling &amp; Predictive Simulations L=
aboratory<br>
&gt; <a href=3D"http://www.champs.cecs.ucf.edu" target=3D"_blank">www.champ=
s.cecs.ucf.edu</a><br>
&gt; <a href=3D"http://www.mattbilskie.com" target=3D"_blank">www.mattbilsk=
ie.com</a><br>
&gt; University of Central Florida<br>
&gt; Civil, Environmental, &amp; Construction Engineering Department<br>
&gt; 12800 Pegasus Drive, Suite 211<br>
&gt; Orlando, FL 32816-2450<br>
</div></div>&gt; 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 bu=
gs or request features, please register and add New Issue on <a href=3D"htt=
p://gmt.soest.hawaii.edu" target=3D"_blank">gmt.soest.hawaii.edu</a> To uns=
ubscribe, send the message &quot;signoff gmt-help&quot; to <a href=3D"mailt=
o:[email protected]">[email protected]</a> Note: gmt-help w=
ill become obsolete on Sept 1, 2014 - please use forum on <a href=3D"http:/=
/gmt.soest.hawaii.edu" target=3D"_blank">gmt.soest.hawaii.edu</a> instead.<=
br>


<br>
Mailing list for GMT discussions of all kinds.=C2=A0 If you are not sure yo=
u have found a bug, discuss it here first.<br>
To formally report bugs or request features, please register and add New Is=
sue on <a href=3D"http://gmt.soest.hawaii.edu" target=3D"_blank">gmt.soest.=
hawaii.edu</a><br>
To unsubscribe, send the message &quot;signoff gmt-help&quot; to <a href=3D=
"mailto:[email protected]">[email protected]</a><br>
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on <=
a href=3D"http://gmt.soest.hawaii.edu" target=3D"_blank">gmt.soest.hawaii.e=
du</a> instead.<br>
</blockquote></div><br></div></div>
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 &quot;signoff gmt-help&quot; to <a href=3D"mailto:[email protected]">[email protected]</a>
Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.

--089e012297c02f013005012864b8--