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

Home » Public Forums » archive » 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
FSC_color and loadct clashing [message #54443] Sat, 16 June 2007 22:35
russell.grew is currently offline  russell.grew
Messages: 74
Registered: February 2005
Member
Hi,

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.

Thus, my code has:

; getting contours sorted
levels = 25
step = (maxz - minz) / levels
userLevels = IndGen(levels) * step + minz

loadct, 20

black = FSC_Colors('black')

device, decomposed = 0

Window, 0, Title='Display Output', XSize=800, YSize=600

Contour, powerspec, x, y, /Fill, Position=[0.07, 0.1, 0.9, 0.90], $
Levels=userLevels, yrange = [0, 1], zrange = [minz, maxz], xrange =
[0, max(x)], $
xstyle = 1, ytitle = 'Frequency (Hz)', xtitle = 'Time', color = black

colorbar, Title='Power (dB)', Range=[minz,maxz], vertical = 1, $
Position = [0.92, 0.1, 0.94, 0.9], right = 1, divisions = 4, color =
black


The problem is, there's a black line through my colorbar at the
equivalent of black (in this case green) for color table 20. If I
reverse the loadct and FSC_color commands, everything gets wrapped in
a green box.

Any idea how I can make my axes & labels black without getting a black
line through my colorbar?

Thanks.

Russell.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Thanks... David, Jeff, and Kuyper! Now that's more like it!!!
Next Topic: Re: JPEG2000 Tiling Examples?

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

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

Total time taken to generate the page: 0.00437 seconds