How to plot the contour shaded with a color bar?

Qingfang Dai qdai at MATH.UALBERTA.CA
Tue Jul 29 14:26:36 EDT 2008


Dear all users,

I want to plot EOF data into contour shaded with a color bar. Now my GS file
is as follows:

'reinit'
'open ../ABMapsForReport/EOF_Jan.ctl'
'set grads off'
'set mproj nps'
'set grid off'
'set frame off'
'set gxout shaded'
'set clevs -20 -18 -16 -14 -12 -10 -8 -6 -4 -2 0 1'
'set ccols 9 14 4 11 5 13 3 10 7 12 8 2 6'
'set cstyle 1'
'set csmooth off'
'set t 1 1'
'set mpdset ../province'
'd prep'
'set font 1'
'set string 1 tc 3'
'set strsiz 0.15 0.15'
'draw title EOF1 1961-2000 January'
'cbarn'
'printim ../EOF1_Jan.gif gif white'

But I don't know why the color bar I got without data. I am wondering how to
plot a coutour shaded with a color bar which display each color denotes each
data interval. Thanks.


Yours Faithfully,

Fang



More information about the gradsusr mailing list