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

Home » Public Forums » archive » extra lines in colorbar
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: extra lines in colorbar [message #87437 is a reply to message #87432] Mon, 03 February 2014 08:11 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
FWIW, doing this without loading a color table:

x = DINDGEN(10)

cgPlot, x, x, COLOR='red'
cgPlot, x, x, COLOR='green'

cgLoadCT, 39, RGB_TABLE=rgb

colorInd = BYTSCL(x)
rgb =rgb[colorInd, *] ;pare down the "color table" to just the colors you need/want

colors = cgColor24(rgb) ;make some long integers

cgPlot, x, x, /NODATA
FOR i=0, 9 DO cgPlots, x[i], x[i], COLOR=colors[i], PSYM=2

cgCOLORBAR, ...., PALETTE=rgb ;make the color bar, using your pared down "color table"
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: problem in finding average for every 100 points in a data set.
Next Topic: logarithmic colorbar

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

Current Time: Sat Oct 11 03:44:51 PDT 2025

Total time taken to generate the page: 1.03719 seconds