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

Home » Public Forums » archive » Re: Greek Symbols in Plot Annotations
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: Greek Symbols in Plot Annotations [message #69281 is a reply to message #69279] Mon, 11 January 2010 15:32 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> The only thing the CASE construct should be doing is selecting the right string element,
> right? All the other stuff (prefixing and suffixing with the escape sequences, testing for
> PS or not) can be done outside. Then you only need one CASE construct and the code is not
> so wet[*]. :o)

Now that I look at this more carefully, maybe the code
is not as bad as I thought. I still need two case statements,
since the octal values for a specific Greek character are
often not the same for !4 and !9 fonts. (If they were,
no one would be thinking about writing this function,
probably.)

I could probably write this code slightly more compactly,
but I'm not sure it is worth the trouble. It *is* formatted
nicely. ;-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Removing if then else loop for efficiency
Next Topic: Re: pointer & structure

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

Current Time: Sat Oct 11 04:49:54 PDT 2025

Total time taken to generate the page: 2.08546 seconds