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