Re: Title in GMT 5?

Paul Wessel <[email protected]>
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
Well, you do have to look at the documentation to see what pstext expects.  I cannot read that for you.  Even if you just type

pstext -

you will at least be told the input format is

	Reads (x,y[,fontinfo,angle,justify],text) from <table> [or stdin].

so clearly you will need to specify the lon, lat coordinates, and if plotting outside the -R then you also need -N; see the pstext man page.

-p

On Jan 24, 2014, at 9:53 AM, Shahar Barak <[email protected]> wrote:

> I am having trouble understanding how to place the text where I want it, centered above the figure.
> My figure is a map with lat/lon coordinates.
> If I don't use any special options:
> echo ${title} | gmt pstext -J -R -K -O >> ${ps_file}
> I get:
> pstext: Record 0 had bad x coordinate, skipped)
> pstext: Record 0 had bad y coordinate, skipped)
> 
> I'm not sure what that means.
> 
> 
> On Wed, Jan 22, 2014 at 2:58 PM, Paul Wessel <[email protected]> wrote:
> Hi Shahar-
> 
> You can either place a 1-line title via -B+t"my title" or place text (even wrapped and multi-line) with pstext.
> -p
> 
> On Jan 22, 2014, at 11:54 AM, Shahar Barak <[email protected]> wrote:
> 
> > Hi,
> >
> > What would be the best way to insert a title above a figure in GMT 5?
> > Is there away to have a title with a line break (for a long title) or automatic wrapping?
> >
> > Thanks,
> >
> > Shahar
> > To unsubscribe, send the message "signoff gmt-help" to [email protected]
> 
> To unsubscribe, send the message "signoff gmt-help" to [email protected]
> 
> To unsubscribe, send the message "signoff gmt-help" to [email protected]

To unsubscribe, send the message "signoff gmt-help" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.