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

Home » Public Forums » archive » Re: Angstrom symbol in IDL/PvWave title
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Angstrom symbol in IDL/PvWave title [message #390] Wed, 25 March 1992 09:37
paul is currently offline  paul
Messages: 22
Registered: June 1991
Junior Member
Try the following to create an IDL angstrom symbol:

ang='!3!SA!R!A!9%!N!3'

example: plot,x,y,xtitle=ang, ...

paul@astro.umd.edu
Re: Angstrom symbol in IDL/PvWave title [message #391 is a reply to message #390] Wed, 25 March 1992 07:19 Go to previous message
hcohl is currently offline  hcohl
Messages: 2
Registered: May 1992
Junior Member
Hi,

I wrote an IDL script a little while back that emulates
a vector drawn angstrom as a string.

You would do something like this:

IDL> xyouts,10,10,angstrom(),/dev

for instance...
Good luck
here it is,
Howie


------------------------------------------------------------ -------------
Howard Cohl HOME : (505)434-3717
National Solar Observatory WORK : (505)434-7000
Sunspot, New Mexico E-MAIL : hcohl@sunspot.noao.edu
88349
------------------------------------------------------------ -------------


;----------------------------------------------------------- --
;+
; NAME:
; ANGSTROM
; PURPOSE:
; This function, if called, returns a string containing
; the vector drawn signature of the angstrom symbol.
; CATEGORY:
; TEXT STRING ROUTINES
; CALLING SEQUENCE:
; sang = angstrom()
; INPUTS:
; NONE
; KEYWORD PARAMETERS:
; OUTPUTS:
; sang = A scalar string containing the vector drawn
; signature of the angstrom symbol.
; type: scalar,string
; COMMON BLOCKS:
; NOTES:
; MODIFICATION HISTORY:
; H. Cohl, 2 Apr, 1991 ---
;-
;----------------------------------------------------------- --

function angstrom,help=help

angstrom='!SA!R!U!9 %!17'
sang=string(angstrom)

return,sang

end
--

------------------------------------------------------------ -------------
Howard Cohl HOME : (505)434-3717
National Solar Observatory WORK : (505)434-7000
Re: Angstrom symbol in IDL/PvWave title [message #393 is a reply to message #391] Wed, 25 March 1992 05:51 Go to previous message
dieh1232 is currently offline  dieh1232
Messages: 1
Registered: March 1992
Junior Member
In article <1992Mar24.201306.16257@ucsu.Colorado.EDU> boroson@ucsu.Colorado.EDU (BOROSON BRAM S) writes:
> I'm making a plot and I need to use an Angstrom symbol in a title.
> I don't see this symbol listen in the vector-drawn fonts (chapter 12
> of the IDL manual) and I was wondering how other people solve this.
>
We got the same sort of problem here in Germany with our Umlauts ("a,"o,"u).
As a workaround I initialize a commmon block at the beginning of each
session that contains strings with base-character, the two dots and some
character-positioning-commands. It is not really perfect in the looks, but
PVI didn't offer anything better. For using these special characters I
concatenate them with the other parts of the string to print,

e.g.: title=aeg+'rger'
common umlaut ,ae,aeg,oe,oeg,ue,ueg
ae='!sa!r!u!e!9 . . !n!3' & aeg='!sA!r!u!e!9 . . !n!3'
oe='!so!r!u!e!9 . . !n!3' & oeg='!sO!r!u!e!9 . . !n!3'
ue='!su!r!u!e!9 . . !n!3' & ueg='!sU!r!u!e!9 . . !n!3'

I suppose you could create the Angstrom in a similar way.

rolf

rolf diehl technical university berlin
dieh1232@files1zrz.zrz.tu-berlin.de
Re: Angstrom symbol in IDL/PvWave title [message #394 is a reply to message #393] Wed, 25 March 1992 00:13 Go to previous message
hofer is currently offline  hofer
Messages: 16
Registered: April 1991
Junior Member
In article <120918@lll-winken.LLNL.GOV>, sterne@dublin.llnl.gov (Philip Sterne)
writes:
> In article <1992Mar24.201306.16257@ucsu.Colorado.EDU>,
> boroson@ucsu.Colorado.EDU (BOROSON BRAM S) writes:
>> I'm making a plot and I need to use an Angstrom symbol in a title.
>> I don't see this symbol listen in the vector-drawn fonts (chapter 12
>> of the IDL manual) and I was wondering how other people solve this.
>
> Divide by 0.5292 and label it "atomic units" instead :-)

We `solve' this by using the string "Angstroems" or by dividing by ten and
using "nm". Sorry, no better solution.

Remo Hofer
--
RFC822: <hofer@urz.unibas.ch> or <hofer%urz.unibas.ch@CERNVAX.BITNET>
X.400: S=hofer;OU=urz;O=unibas;P=SWITCH;A=ARCOM;C=CH
HEPNET/SPAN: CHGATE::YOGI::HOFER or 20579::48130::HOFER
Re: Angstrom symbol in IDL/PvWave title [message #395 is a reply to message #394] Tue, 24 March 1992 15:44 Go to previous message
sterne is currently offline  sterne
Messages: 15
Registered: March 1992
Junior Member
||> I'm making a plot and I need to use an Angstrom symbol in a title.
|> I don't see this symbol listen in the vector-drawn fonts (chapter 12
|> of the IDL manual) and I was wondering how other people solve this.

Divide by 0.5292 and label it "atomic units" instead :-)

Depending on your output device, you may be able to find a hardware font with the Angstrom symbol in it. This brings up another problem, however, which I have found very irritating. Unlike the Hershey fonts, here seems to be no way of mixing fonts within a string for the hardware fonts, eg postscript. If you want to mix symbol and non-symbol characters in the same line, you have to use two different xyouts commands and line them up by hand. Anybody got a better way?

Phil
--
Philip Sterne | sterne@dublin.llnl.gov
Lawrence Livermore National Laboratory | Phone (510) 422-2510
Livermore, CA 94550 | Fax (510) 422-7300
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Creating transparent image overlay
Next Topic: Has anyone written idl-mode.el?

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

Current Time: Wed Oct 08 15:12:17 PDT 2025

Total time taken to generate the page: 0.00701 seconds