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 IDL5.6
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 IDL5.6 [message #34827] Thu, 24 April 2003 12:31 Go to next message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <3EA656F8.65FA0695@Risoe.DK>,
Kristian Kjaer <Kristian.Kjaer@Risoe.DK> wrote:

> On http://www.dfanning.com/misc_tips/angstrom.html Dave Fanning shows us
> how to draw an 'Angstrom symbol' (which is of course just the last
> letter of the alphabet used around here).
>
> Something like:
> angstrom = '!6!sA!r!u!9 %!n!x'
> XYOUTS, 0.1, 0.5, /Normal, CharSize=5.0, 'Symbol: ' + angstrom

Not what you wanted, I know, but what about using nanometers (nm). Many
journals will no longer allow non-SI units.

Ken Bowman
Re: Angstrom symbol in IDL5.6 [message #34828 is a reply to message #34827] Thu, 24 April 2003 12:00 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
CM wrote:

> I don't have 5.6, but you could try this, at least, it works in 5.5:
>
> angstrom = STRING(197B)

I was yesterday looking for this but I missed it

good work

Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
Re: Angstrom symbol in IDL5.6 [message #34834 is a reply to message #34828] Thu, 24 April 2003 09:37 Go to previous messageGo to next message
CM is currently offline  CM
Messages: 4
Registered: April 2003
Junior Member
I don't have 5.6, but you could try this, at least, it works in 5.5:

angstrom = STRING(197B)
Re: Angstrom symbol in IDL5.6 [message #34854 is a reply to message #34834] Wed, 23 April 2003 07:31 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Kristian Kjaer wrote:

> On http://www.dfanning.com/misc_tips/angstrom.html Dave Fanning shows us
> how to draw an 'Angstrom symbol' (which is of course just the last
> letter of the alphabet used around here).
>
> Something like:
> angstrom = '!6!sA!r!u!9 %!n!x'
> XYOUTS, 0.1, 0.5, /Normal, CharSize=5.0, 'Symbol: ' + angstrom
>
> But in IDL5.6 this doesn't work so well as in earlier versions: The
> 'ring' is displaced.
>
> Anything to suggest this is not a genuine bug?
>
> - Kristian


The o is a bit higher as normal in this example but it seems only !A does a
centric move up.

erase & XYOUTS, 0.1, 0.5, /Normal, $
CharSize=6.0,'!sA!r!A'+string(BYTE(176))+'!N'

Reimar
--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
Re: Angstrom symbol in IDL5.6 [message #34857 is a reply to message #34854] Wed, 23 April 2003 07:01 Go to previous messageGo to next message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
"Kristian Kjaer" <Kristian.Kjaer@Risoe.DK> wrote in message
news:3EA656F8.65FA0695@Risoe.DK...
> On http://www.dfanning.com/misc_tips/angstrom.html Dave Fanning shows us
> how to draw an 'Angstrom symbol' (which is of course just the last
> letter of the alphabet used around here).
>
> Something like:
> angstrom = '!6!sA!r!u!9 %!n!x'
> XYOUTS, 0.1, 0.5, /Normal, CharSize=5.0, 'Symbol: ' + angstrom
>
> But in IDL5.6 this doesn't work so well as in earlier versions: The
> 'ring' is displaced.
>
> Anything to suggest this is not a genuine bug?

I find Matt Craig's TeXtoIDL package to be indispensable for plotting
symbols:

http://physweb.mnstate.edu/mcraig/TeXtoIDL/

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
Re: Angstrom symbol in IDL5.6 [message #34860 is a reply to message #34857] Wed, 23 April 2003 06:28 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kristian Kjaer (Kristian.Kjaer@Risoe.DK) writes:

> On http://www.dfanning.com/misc_tips/angstrom.html Dave Fanning shows us
> how to draw an 'Angstrom symbol' (which is of course just the last
> letter of the alphabet used around here).
>
> Something like:
> angstrom = '!6!sA!r!u!9 %!n!x'
> XYOUTS, 0.1, 0.5, /Normal, CharSize=5.0, 'Symbol: ' + angstrom
>
> But in IDL5.6 this doesn't work so well as in earlier versions: The
> 'ring' is displaced.
>
> Anything to suggest this is not a genuine bug?

Wow. Sure enough. This sure looks like a bug to me.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Angstrom symbol in IDL5.6 [message #34898 is a reply to message #34834] Mon, 28 April 2003 01:41 Go to previous message
Kristian Kjaer is currently offline  Kristian Kjaer
Messages: 58
Registered: June 1998
Member
CM wrote:
> I don't have 5.6, but you could try this, at least, it works in 5.5:
> angstrom = STRING(197B)

Yes, well, this works (with the default font):
window & XYOUTS, 0.1, 0.5, /Normal, CharSize=6.0,'!3'+STRING(197B)+'!x'

But with a fancy font it does not work:
window & XYOUTS, 0.1, 0.5, /Normal, CharSize=6.0,'!6'+STRING(197B)+'!x'

- Kristian
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Can ENVI's roi connected to a database?
Next Topic: Re: Cannot install IDL 5.02 with RedHat 8

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

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

Total time taken to generate the page: 0.00651 seconds