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

Home » Public Forums » archive » How to create a colour table in IDL?
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: How to create a colour table in IDL? [message #90016 is a reply to message #90005] Thu, 15 January 2015 02:40 Go to previous messageGo to previous message
atmospheric physics is currently offline  atmospheric physics
Messages: 121
Registered: June 2010
Senior Member
Hello David,

Yes. I can see the difference. But when I incorporate the same into my code, I don't see any difference. May be something going wrong which I could not trace!!!
Will it be possible for you to check where I am going wrong in my code?

Below is my code:
---------------------------------
PRO testplot

tindex = indgen(1000)
d = randomu(1L, 12, 1000)
minval = MIN(d,MAX=maxval)

FigFile = 'testplot1.ps'

cgPS_Open, FigFile
cgDisplay
thick = (!D.Name EQ 'PS') ? 2:1

!P.Multi=0

device, decomposed=0
cgLoadCT, 0
cgLoadCT, 22, /Brewer
tvlct, 0, 0, 0, 0
tvlct, 255, 255, 255, 255

cgColorbar, /Brewer, CTindex=22, TCharsize=0.12, $
range=[minval,maxval],/right, tlocation='right', $
Title='d',/Vertical, Font=-1, Minor=5, $
Position=[0.81,0.32,0.83,0.90]

mg_horizon, tindex, d, nbands=6,titles=ytitles, $
xstyle=1, ystyle=1, Xrange=[0,1000], $
Thick=thick, Font=-1, minimum=minval, $
maximum=maxval, Position=[0.1,0.3,0.70,0.94]

; Closing the figure file
cgPS_Close
; Create a PNG file
cgPS2Raster, FigFile, /PNG

END
--------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: When with the Linux version switch from Motif's to a modern toolkit?
Next Topic: Colors for the Color Blind

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

Current Time: Wed Oct 08 11:48:06 PDT 2025

Total time taken to generate the page: 0.00450 seconds