Re: Using pslegend
Paul Wessel <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
On Mar 3, 2014, at 1:23 PM, Shahar Barak <[email protected]> wrote: > I am using Version 5.1.0 (r12471) [64-bit] > In pstext, I don't see an option for a background fill behind the text. Do you suggest using pstext to overlay the text on the box I create with pslegend? No, I meant if you just want to place a 1-line sentence or word, use pstext directly. To fill background, see -G, -W, -T If you have a more elaborate legend, use pslegend but (to bypass bug) start with something other than T. -p > > > > > On Mon, Mar 3, 2014 at 3:15 PM, Paul Wessel <[email protected]> wrote: > Hi- > > To pipe many lines of text into pslegend you use the Unix HERE DOCUMENT style, i.e. > > pslegend various_options << EOF >> map.ps > line1 > line2 > line3 > ... > EOF > > Your single text example triggered a bug in pslegend; now fixed in r12975. If you just want to place one sentence of word you are better of with pstext. > To draw the box, specify a pen via +p<pen> > I cannot reproduce your box vs text displacement though, and hard to guess what version you are using. > > -p > > > On Mar 3, 2014, at 12:48 PM, Shahar Barak <[email protected]> wrote: > > > Hi, > > > > I have two issues: > > 1. My pslegend command has the box and the text at different places. See image below: > > <image.png> > > > > The white box is at the top of the figure (where I want it) while the text "text" is in the bottom of the figure. > > > > My script is: > > cat > legend.gmt << EOF > > H 12 - text > > EOF > > gmt pslegend legend.gmt -D2.88/4/1/12p/BC -J -R -F+gwhite -K -O >> ${ps_file} > > > > Also, I don't see a frame around the white box. > > > > 2. I don't understand from the documentation how to pipe the text into pslegend. > > When I do: > > echo "T some text" | gmt pslegend ... > > I get: > > pstext: Text record line 0 not preceded by paragraph information, skipped) > > > > I also tried: > > echo "P\n T some text" | gmt pslegend ... > > and I get: > > pslegend: Error: Unrecognized record ( T some text) > > > > What do I need to do? > > > > 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]