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

Home » Public Forums » archive » Special characters in axis labels
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
Special characters in axis labels [message #3108] Wed, 16 November 1994 13:25 Go to next message
am9963 is currently offline  am9963
Messages: 1
Registered: November 1994
Junior Member
Does anyone know how to put special characters in the axis labels when
you make a postscript plot in idl? I need to label one axis as angstroms
and I can't seem to be able to find a way to put the ascii code for the
angstrom symbol in the text string which describes the x-axis. How do I
let idl know that I want ascii symbol 197 in my string and not "197"?
I have looked all over in the documentation and can't find how to do this.
Any help would be greatly appreciated.

--
Alan E. Munter
munter@uiuc.edu
Re: Special characters in axis labels [message #3201 is a reply to message #3108] Thu, 17 November 1994 10:03 Go to previous messageGo to next message
agraps is currently offline  agraps
Messages: 35
Registered: September 1994
Member
am9963@glhpx6 (Alan Edwin Munter) writes:

> Does anyone know how to put special characters in the axis labels when
> you make a postscript plot in idl? I need to label one axis as angstroms
> and I can't seem to be able to find a way to put the ascii code for the
> angstrom symbol in the text string which describes the x-axis.

> --
> Alan E. Munter
> munter@uiuc.edu

Alan:

When I had to do what you wanted a long time ago, I looked it up in
Adobe's Postscript Lang Reference Manual. I don't have my manual
handy, so I don't recall the octal reference number. (For example, for
degree, the octal value is : \260.) I tried to find the angstrom
symbol in another postscript book that I have, and I could only find
the octal number for the "ring" symbol, the circle over the A: \312.
So how about trying this: draw a regular A, and back up and put the
ring over it? Say the A is in Times-Roman font: !7. Note, !9 is the
symbol font, !S is the save position action, !R is the restore
position action, !X returns to the entry font, and !N shifts back to
the normal level (probably not necessary).

So, try this: (haven't tested it, so I don't know if this works)
Angstrom = '!S!7A!R!9\312!N!X'
xlabel = 'Wavelength ('+Angstrom+')'
(draw xlabel)

Amara
--

************************************************************ **********
Amara Graps email: agraps@netcom.com
Computational Physicist vita: finger graps@clio.arc.nasa.gov
Intergalactic Reality bio: finger -lm agraps@netcom.com
************************************************************ **********
"If you wish to drown, do not torture yourself with shallow water."
--A Bulgarian proverb
Re: special characters [message #11936 is a reply to message #3108] Tue, 09 June 1998 00:00 Go to previous message
Wim Bouwman is currently offline  Wim Bouwman
Messages: 8
Registered: September 1997
Junior Member
Tim Abbott <tmca@cfht.hawaii.edu> wrote in article
<357C6940.9A230C50@cfht.hawaii.edu>...
> Mirko Loehmann wrote:
>
>> Hi,
>> how do I get special characters for titles for example
>> which would look in LaTeX like this
>> q_x [\AA^{-1}]
>
> title="q!Dx!N["+string(0197B)+"!E-1!N]"
or:
title="q!Dx!N[0.1 nm!E-1!N]"

Dr. Wim G. Bouwman phone (++31) (0)15 2786775
Interfacultair Reactor Instituut fax (++31) (0)15 2786422
Technische universiteit Delft w.g.bouwman@iri.tudelft.nl
Mekelweg 15 http://www.iri.tudelft.nl/~bouwman
2629 JB Delft The Netherlands
Re: special characters [message #11943 is a reply to message #3108] Mon, 08 June 1998 00:00 Go to previous message
Tim Abbott is currently offline  Tim Abbott
Messages: 4
Registered: January 1997
Junior Member
Mirko Loehmann wrote:

> Hi,
> how do I get special characters for titles for example
> which would look in LaTeX like this
> q_x [\AA^{-1}]

title="q!Dx!N["+string(0197B)+"!E-1!N]"

Cheers,

Tim


--
Timothy M. C. Abbott, Ph.D. http://www.cfht.hawaii.edu/~tmca/
Resident Astronomer tmca@cfht.hawaii.edu
Canada-France-Hawaii Telescope Tel: +1 808 885 7944
Box 1597, Kamuela, HI 96743 Fax: +1 808 885 7288
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Upgrade from 3.6
Next Topic: buttons on exclusive base

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

Current Time: Wed Oct 08 18:14:10 PDT 2025

Total time taken to generate the page: 0.00610 seconds