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

Home » Public Forums » archive » Re: Understanding Color in IDL
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: Understanding Color in IDL [message #50543] Wed, 11 October 2006 12:37 Go to next message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <MPG.1f96f2ee99f1cd0a989d1f@news.frii.com>,
David Fanning <news@dfanning.com> wrote:

> I'd be satisfied with the way it is now (since we finally
> have most of the UNIX folks able to see *something* other
> than red on black plots!) if we just didn't have to write
> our programs differently to send then to a PostScript file
> or printer. :-(


Hear! Hear!

Ken Bowman
Re: Understanding Color in IDL [message #50544 is a reply to message #50543] Wed, 11 October 2006 12:24 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
JD Smith writes:

> Every time I interact with new IDL users, even very savvy, technically
> inclined users, the number one initial stumbling block relates to
> colors, usually DECOMPOSED issues. I think ITTVIS should take a hard
> look at their default color model, and ask themselves whether it's
> satisfying the largest number of users. Yes, once you learn the magic
> tricks, you are fine, but first impressions are everything, and the
> first impression many of my colleagues have of IDL is that it is buggy
> and can't display images very well.

I guess we could argue about what would "satisfy the
largest number of users", but I have a feeling the iTools
crowd (and I'm not saying that tongue in cheek) and even
the folks like me, who LOVE 24-bit color and couldn't
live without it now that I've built enough tools to deal
with it, would get the shaft. In my experience, 80-90%
of the IDL users still use the indexed color model for
most of their programming needs.

I'd be satisfied with the way it is now (since we finally
have most of the UNIX folks able to see *something* other
than red on black plots!) if we just didn't have to write
our programs differently to send then to a PostScript file
or printer. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Understanding Color in IDL [message #50545 is a reply to message #50544] Wed, 11 October 2006 11:54 Go to previous messageGo to next message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Wed, 11 Oct 2006 11:29:03 -0600, David Fanning wrote:

> Folks,
>
> A quick look at my web page statistics for the keywords people
> use to find my pages convinces me that understanding how color
> works in IDL is still the number one problem for new users.
> (Closely followed by how to get decent PostScript output and
> how to calculate the log base 2 of a number, apparently.)
>
> I've written a number of articles on color over the years,
> but I've never collected this material into a single
> coherent explanation. I've attempted to do that now with
> a chapter I've written for the 3rd edition of my book.
> (Please don't hold your breath, but I *am* working on it,
> off and on.)
>
> I've made the chapter available as a PDF file for
> those who might be interested. If you are still confused
> after reading it, please let me know. I'd like to get
> this right before the book is published. :-)

Every time I interact with new IDL users, even very savvy, technically
inclined users, the number one initial stumbling block relates to
colors, usually DECOMPOSED issues. I think ITTVIS should take a hard
look at their default color model, and ask themselves whether it's
satisfying the largest number of users. Yes, once you learn the magic
tricks, you are fine, but first impressions are everything, and the
first impression many of my colleagues have of IDL is that it is buggy
and can't display images very well.

JD
Re: Understanding Color in IDL [message #50712 is a reply to message #50544] Thu, 12 October 2006 01:50 Go to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
David Fanning wrote:
> I'd be satisfied with the way it is now (since we finally
> have most of the UNIX folks able to see *something* other
> than red on black plots!) if we just didn't have to write
> our programs differently to send then to a PostScript file
> or printer. :-(

I hardly ever plot to the screen. In fact, I only use the screen when
debugging, otherwise I print to encapsulated postscript, and
investigate
the damage with spawn and gv. Offers instant zooming as wel.

Maarten
Re: Understanding Color in IDL [message #50738 is a reply to message #50544] Wed, 11 October 2006 14:14 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Wed, 11 Oct 2006 13:24:55 -0600, David Fanning wrote:

> JD Smith writes:
>
>> Every time I interact with new IDL users, even very savvy, technically
>> inclined users, the number one initial stumbling block relates to
>> colors, usually DECOMPOSED issues. I think ITTVIS should take a hard
>> look at their default color model, and ask themselves whether it's
>> satisfying the largest number of users. Yes, once you learn the magic
>> tricks, you are fine, but first impressions are everything, and the
>> first impression many of my colleagues have of IDL is that it is buggy
>> and can't display images very well.
>
> I guess we could argue about what would "satisfy the
> largest number of users", but I have a feeling the iTools
> crowd (and I'm not saying that tongue in cheek) and even
> the folks like me, who LOVE 24-bit color and couldn't
> live without it now that I've built enough tools to deal
> with it, would get the shaft. In my experience, 80-90%
> of the IDL users still use the indexed color model for
> most of their programming needs.

And why wouldn't they? Decomposed TrueColor is useful when you have a
specific set of colors in mind, approximating, as you mention, how a
human would see it with their own eyeballs (for instance as digital
cameras attempt to do). Most data which flows into IDL isn't obtained
with devices which attempt any such "as it would appear in the
real-world" approximation, but rather instruments whose data requires
some form of visual representation to mesh with the
evolutionarily-encoded image analysis skills of their human
operators. Indexed color tables are the fastest route to that sort of
visualization.

The fact that color tables can only be 256 elements long in IDL is a
vestige of 8b-bit video cards, which had their own 256 element
hardware color index table built right into card, which instantly
changed all colors on the screen when modified (leading to the
"color-flashing" most of us try not to remember). This vestigial
length limit is, however, a separate issue from whether color tables
are useful at all. I for one would be glad to use 16-bit color tables
on devices which could support them. Aside from the larger number of
colors available, what other advantages do you see of the decomposed
model?

For me, a real revolution would be to allow separate, independent, and
fully private color tables, so you wouldn't have to constantly worry
that someone else stomped on your color space just because they needed
to use a color or two. The ability to:

get_color_table_slot,slot,/FREE
loadct,0,SLOT=slot

and re-use that slot (perhaps sharing it among a few apps), never
having to modify it again (unless you wanted to), would be really
helpful. Give us about 2^16 slots, and that should suffice.

> I'd be satisfied with the way it is now (since we finally
> have most of the UNIX folks able to see *something* other
> than red on black plots!) if we just didn't have to write
> our programs differently to send then to a PostScript file
> or printer. :-(

Fully agree on that point.

JD
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Is it possible to use wire mesh and display the surface as a solid at the same time?
Next Topic: Understanding Color in IDL

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

Current Time: Wed Oct 08 19:23:42 PDT 2025

Total time taken to generate the page: 0.00536 seconds