Re: pstext: minor issue
"J. Luis" <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
It is true that the text should not overflow the box (and don't know how
hard would be to implement a check for sub|superscripts), but you can
fine tune by playing with the -C option
*-C*/dx/dy/
Sets the clearance between the text and the surrounding box [15%].
Only used if *-W* or *-G* are specified. Append the unit you want
(*c*m, *i*nch, or *p*oint; if not given we consult
/PROJ_LENGTH_UNIT/ <cid:[email protected]>) or % for
a percentage of the font size.
Joaquim
>
> Hi Januka,
>
> You can avoid that by using a white outline for your box, with the
> thickness you need to include the subscript (although it is true that
> the text will not appear fully centered in the vertical direction).
>
> David
>
>
> -----------------------------------------
> David Pedreira
> Área de Geodinámica Interna
> Departamento de Geología
> Universidad de Oviedo
> C/ J. Arias de Velasco, s/n
> 33005 Oviedo
> SPAIN
>
> Phone: +34 985 10 31 79
> Fax: +34 985 10 31 03
>
>
>
>
>
>
> El Jan 16, 2014, a las 3:30 PM, Januka Attanayake escribió:
>
>> Hi,
>> Came across a small issue with pstext and thought I'd share. In the
>> attached figure, you can see that subscripted "w" in the "Mw" string
>> extends beyond the boundaries of the background rectangle plotted
>> with -W flag. I am using GMT 4.5.9. Perhaps this was fixed in a later
>> version or that you could adjust the box height by modifying GMT
>> defaults. Anyway, maps will be nicer if the whole subscripted letter
>> is included within the background rectangle.
>>
>> My script:
>> pstext -J$proj -R$range -G255/0/0 -W255/255/255 -K -O -V -P >> $outps
>> << END
>> -70.0 35.2 12 0 1 CT M@-w@-=7.0
>> END
>>
>> Januka.
>> --
>> Januka Attanayake
>> Postdoctoral Research Associate
>> Laboratório de Sismologia
>> Complexo Interdisciplinar
>> Departamento de Física
>> Instituto Superior Técnico
>> Av. Rovisco Pais, 1
>> 1049-001 Lisboa, Portugal
>>
>> University email: [email protected]
>> <mailto:[email protected]>
>> Homepage: http://sites.google.com/site/janukaattanayake/
>> To unsubscribe, send the message "signoff gmt-help" to
>> [email protected] <mailto:[email protected]><psmeca.png>
>
> To unsubscribe, send the message "signoff gmt-help" to
> [email protected]
To unsubscribe, send the message "signoff gmt-help" to [email protected]