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.
|