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

Home » Public Forums » archive » Coyote Graphics Interpretation of Long Integers
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
Coyote Graphics Interpretation of Long Integers [message #78821] Sun, 25 December 2011 09:51
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

Merry Christmas!

While I'm waiting for the family to show up to open
presents this morning, I've been doing a little work. :-)

One of the problems Coyote Graphics routines have had
with legacy IDL code is interpreting LONG integers
correctly as color table index numbers, rather than
as numbers that can be decomposed into three separate
colors.

I have solved this problem this morning by writing
a new Coyote Graphics program, cgDefaultColor, which
all the Coyote Graphics programs will take advantage
of to obtain their color values (usually as a string
that can be used with cgColor to get a color in a
device independent way).

The input to cgDefaultColor can be a scalar or an
array, and the data type can be undefined, byte,
int, long, or string. You can learn more about
it here:

http://www.idlcoyote.com/idldoc/cg/cgdefaultcolor.html

It should solve a number of problems that people
have been having with AL_Legend.

You will need an updated Coyote Library:

http://www.idlcoyote.com/programs/zip_files/coyoteprograms.z ip

Best Wishes for the New Year!

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: One Reason Python is not taking over for IDL
Next Topic: replacing blocks in an array with other array values?

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

Current Time: Wed Oct 08 13:47:45 PDT 2025

Total time taken to generate the page: 0.00560 seconds