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

Home » Public Forums » archive » Re: Octals
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: Octals [message #27146 is a reply to message #27143] Thu, 11 October 2001 08:11 Go to previous messageGo to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
Steve,

Lookup the values you want in the charsets, eg "*" is octal 52, which is
written in IDL as '52'OB. To use it in a string use STRING():

IDL> print, string('52'Ob)
*
IDL> title = "frequency " + string('52'Ob) + " wavelength"
IDL> print, title
frequency * wavelength
; eg usage in a plot title
IDL> plot, indgen(10), title=title


Martin

"Steve Cole" <s.j.cole@ex.ac.uk> wrote in message
news:3BC5A7F1.718B0997@ex.ac.uk...
> Does anybody know how to print a character or symbol by its octal value?
>
> (I am trying to put a multiplication sign in the title of a plot)
>
> Any help would be gratefully recieved.
>
> Thanks
>
> Steve Cole
> University of Exeter
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Titles
Next Topic: Passing strings to CALL_EXTERNAL

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

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

Total time taken to generate the page: 0.00406 seconds