comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » RE: Angstrom Symbol Nonsense
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Angstrom Symbol Nonsense [message #8023 is a reply to message #8020] Fri, 31 January 1997 00:00 Go to previous messageGo to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
William Thompson wrote:

>
>> David
>
> That's actually the same as the STRING("305B) that you suggested earlier, just
> expressed in decimal as well as octal. It does work regardless of graphics
> device, including PostScript, so long as one avoids hardware fonts.
>
> Bill Thompson


Bingo!
I don't think this can be done, reliably at least, for hardware fonts.
What does that mean? With hardware fonts it may work in X, but never in
PS.
Give it a try, I mean BOTH methods suggested by David Fanning. Here is
a
procedure for you...


pro test_fonts, setx=setx, setps=setps, hard=hard, soft=soft

!p.font = -1
set_plot, 'X'
if (keyword_set(setx)) then set_plot, 'X'
if (keyword_set(setps)) then set_plot, 'PS'
if (keyword_set(hard)) then !p.font = 0 ; Hardware fonts
if (keyword_set(soft)) then !p.font = -1 ; Vector-drawn fonts
!p.color = 0
!p.background = 1

ang1 = '1) ' + string("305B)
ang2 = '2) !6!sA!r!u!9%!6!n'

el_nino1 = '3) El Ni' + string(241B) + 'o'
el_nino2 = '4) El Ni' + string("241B) + 'o'
el_nino3 = '5) El Ni!sn!r!u!9A!6!no'

plot, indgen(1)

xyouts, .4, .8, ang1, /norm, chars=3
xyouts, .4, .7, ang2, /norm, chars=3
xyouts, .4, .6, el_nino1, /norm, chars=3
xyouts, .4, .5, el_nino2, /norm, chars=3
xyouts, .4, .4, el_nino3, /norm, chars=3

if (!d.name eq 'PS') then device, /close

end


--
Andrew F. Loughe |
afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 |
http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707
fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us
with
sense, reason, and intellect has intended us to forego their use."
-Galileo
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: S: catching the output of help,/mem into variable-programm ???
Next Topic: Speckle

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:19:06 PDT 2025

Total time taken to generate the page: 0.00476 seconds