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

Home » Public Forums » archive » Re: FSC_color and loadct clashing
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: FSC_color and loadct clashing [message #54441] Sun, 17 June 2007 07:05 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
russell.grew@gmail.com writes:

> I've spent some time today making contour plots.
>
> Huge thanks for David Fanning for his routines.
>
> I have struck a problem! I really want my contour plot to have the Hue
> Sat Lightness (loadCT, 20) colours, but I want a black set of axes
> inclusive of colorbar. Currently running windows and plotting to
> screen, but need to plot to 'x' and 'ps' also.

This article should explain it for you:

http://www.dfanning.com/color_tips/lineinct.html

But, really, with a contour plot like this, you should
only be loading the contour colors into 25 slots in
the color table:

LoadCT, 20, Colors=25, Bottom=1

and later:

Contor, C_Colors=Indgen(25)+1, ...
Colorbar, NColors=25, Bottom=1, ...

Here is an article that explains why:

http://www.dfanning.com/tips/contour_hole.html

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: FSC_color and loadct clashing [message #54442 is a reply to message #54441] Sun, 17 June 2007 05:46 Go to previous messageGo to next message
jkj is currently offline  jkj
Messages: 48
Registered: April 2007
Member
Isn't this one of those situations where you reserve a color or two at
the end of the color scale, make one of those colors be black and then
use that index (which is then something >= than !d.table_size) for
your axes? If you want to frame your colorbar in a color that does
not show up in the colorbar, then you will need to access a color
which is not found in the colorbar.
-Kevin
Re: FSC_color and loadct clashing [message #54519 is a reply to message #54441] Mon, 18 June 2007 19:12 Go to previous message
russell.grew is currently offline  russell.grew
Messages: 74
Registered: February 2005
Member
Thanks David.

Its working now.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL input files.
Next Topic: reading binary files

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

Current Time: Wed Oct 08 17:38:15 PDT 2025

Total time taken to generate the page: 0.00596 seconds