Re: tv with axes routine (colorbar wishlist) [message #51611] |
Sat, 02 December 2006 17:28 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Brian Larsen writes:
> I am finding myself working on imagesc and wishing that colorbar would
> plot log color scales....
>
> Is there a clever way to do this I don't know or is this a feature that
> is not implemented?
It's not particularly clever. It is pretty much a PLOT
command, with maybe some special labeling for the
log axis
http://www.dfanning.com/graphics_tips/minorlog.html
But the current color bar relies on someone else to
set the colors correctly. I have little faith in the
masses to do this correctly using a log scale:
http://www.dfanning.com/color_tips/logcolor.html
Would your proposed wish list include having the
color bar load the colors itself? Where then?
Would you want to specify the gamma of the log
scale lookup yourself? Or do you wish to specify
the particular log function to use?
I think the main reason I haven't written a log
colorbar is that I'm not sure I have time to answer
all the questions it will possibly engender. It
seems rather particular to a specific problem to me.
Does anyone have an example of this?
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.")
|
|
|
|