comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Angstrom symbol
items: Re: Angstrom symbol

Angstrom symbol
type: item
description: I'm wondering if there's a way to print out an angstrom symbol in a title of a plot with PostScript font. I know this is possible with X-window fonts, because the symbol is encoded with an octal number, which can be found by using "xfd". However, this symbol is not explicitly encoded in PostScript, so I don't know how to access it even though my printer has the font. Currently, I'm using the following sequence of positioning commands to construct the symbol with PostScript font: "!SA!R !A!9\260!N" However, this still looks awkward. Is there a way to print out this symbol directly in PostScript? Someone might have asked this question already, but I couldn't find any answer in the FAQ. I would appreciate any suggestions. Thanks in advance. Eiichi Egami Institute for Astronomy University of Hawaii
creator: egami
date: 1993-09-15T09:59:23-00:00

Re: Angstrom symbol
type: item
description: There's a way to do it. Look in the release notes on your computer. If you're on Unix, I think you can do cd /usr/local/lib/idl/lib/doc grep ngstrom * or something like that. Sorry I can't get it at it at the moment... -- ******************* Chris Jacobsen, Department of Physics, SUNY at Stony Brook Phone (516) 632-8093, FAX -8101 Bitnet: cjacobsen@sbccmail jacobsen@xray1.physics.sunysb.edu ALL-IN_ONE: CJACOBSEN *******************
creator: jacobsen
date: 1993-09-16T23:58:50-00:00

Re: Angstrom symbol
type: item
description: In article <JACOBSEN.93Sep16195850@xray1.physics.sunysb.edu>, jacobsen@xray1.physics.sunysb.edu (Chris Jacobsen) writes: > There's a way to do it. Look in the release notes on your > computer. If you're on Unix, I think you can do > cd /usr/local/lib/idl/lib/doc > grep ngstrom * > or something like that. Sorry I can't get it at it at the moment... > -- > ******************* > Chris Jacobsen, Department of Physics, SUNY at Stony Brook > Phone (516) 632-8093, FAX -8101 Bitnet: cjacobsen@sbccmail > jacobsen@xray1.physics.sunysb.edu ALL-IN_ONE: CJACOBSEN > ******************* As I recall, the original question was, "How do I get an Angstrom symbol in PostScript output." Version 3.1 of IDL incorporated Adobe ISO-LATIN 1 font encoding. With that Version or later one can use SET_PLOT,'PS' DEVICE,/HELVETICA,/ISOLATIN1 and insert the Angstrom symbol in character strings with STRING(197B) . Reference: IDL News, Spring, 1993. Scott Claflin LMSC
creator: claflin
date: 1993-09-23T04:19:09-00:00

Re: Angstrom symbol
type: item
description: I use two different methods: ang = string(197b) or ang = '!6!sA!r!u!9 %!6!n' The !6 is just my favorite font, !S saves the position, A is the "A" in angstrom, !r returns to saved position, !u is superscript, !9 changes to math font, ' %' is a space and the degree symbol, !6 back to my font, !n is normal size. It is a hack but it works..... -Andy ---------------------------------- Andrew Nicholas CPI onsite at Naval Research Lab Code : 7640 (202) 767-9452 voice (202) 404-8090 fax nicholas@uap.nrl.navy.mil -----------------------------------
creator: nicholas
date: 1995-05-24T07:00:00-00:00

Re: Angstrom symbol
type: item
description: abraham@ast.cam.ac.uk (Roberto Abraham) wrote: > Hi, I'm a new user of IDL so apologies if this is a FAQ (although I > did do a quick check of the FAQ List so hopefully it isn't!). Can somebody > tell me how to make IDL print out an Angstrom symbol? It seems to be > part of the default font table if one knows how to use the ISO > encoding to specify the character, which unfortunately I don't and can't > figure out from the documentation. If you are interested in generating PostScript plots using the printer's hardware font and hardware Angstrom symbol, my solution to this problem can be found at http://www.astro.washington.edu/deutsch/local_IDL.html If you can't access this site, here's one of the program examples that is there. The program shows a little bit how to deal with the difference between vector fonts and printer hardware fonts. Hope this helps... Eric ; This MAIN_PROGRAM is a demo of how to make publication quality output in ; IDL using Postscript fonts. The program can also be run on X displays ; with the Hershey Triplex font, but special characters will not come out ; looking the same (the price you pay for better quality printed output.) ; See also charsets.pro which prints out the characters sets to the printer. ; Send comments or changes to: deutsch@astro.washington.edu (Eric Deutsch) ; ; You can run this program with something like: ; IDL> setps,/landscape ; direct output to landscape Postscript ; IDL> .run psspecxmpl.pro ; run this program to generate spectrum ; IDL> psclose,auto='sol' ; send output to printer queue sol wl=indgen(2000)*4+1000 ; generate wavelength array spec=sin(wl/1850.)*3+4+randomu(seed,2000) ; generate a noisy sine wave if (!d.name eq 'PS') then begin ; If Postscript output mode !p.font=0 ; select hardware fonts device,/helv,/isolatin1 ; Helvetica ISOLatin fontset ang=string(197B) ; Angstrom sym char string thk=4 ; thick borders are nice endif else begin ; If screen or other output mode !p.font=-1 ; select Hershey fonts xyouts,0…
creator: Eric Deutsch
date: 1995-05-25T07:00:00-00:00

Re: Angstrom symbol
type: item
description: Roberto Abraham (abraham@ast.cam.ac.uk) wrote: : Hi, I'm a new user of IDL so apologies if this is a FAQ (although I : did do a quick check of the FAQ List so hopefully it isn't!). Can somebody : tell me how to make IDL print out an Angstrom symbol? It seems to be : part of the default font table if one knows how to use the ISO : encoding to specify the character, which unfortunately I don't and can't : figure out from the documentation. This probably isnt the easiest way to do it, but I find it useful: you can use string(194b) - I set it up in my idlstartup as angst=string(194b). Works on UNIX and VAX Alpha. Rob O'Connell
creator: soc
date: 1995-05-25T07:00:00-00:00