<div dir="ltr">I normally would run <a href="http://cbar.gs" target="_blank">cbar.gs</a> script. I copied the script from the grads library displayed below:<div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">*
* Script to plot a colorbar
*
* The script will assume a colorbar is wanted even if there is
* not room -- it will plot on the side or the bottom if there is
* room in either place, otherwise it will plot along the bottom and
* overlay labels there if any. This can be dealt with via
* the 'set parea' command. In version 2 the default parea will
* be changed, but we want to guarantee upward compatibility in
* sub-releases.
*
function colorbar (args)
*
* Check shading information
*
'query shades'
shdinfo = result
if (subwrd(shdinfo,1)='None')
say 'Cannot plot color bar: No shading information'
return
endif
*
* Get plot size info
*
'query gxinfo'
rec2 = sublin(result,2)
rec3 = sublin(result,3)
rec4 = sublin(result,4)
xsiz = subwrd(rec2,4)
ysiz = subwrd(rec2,6)
ylo = subwrd(rec4,4)
xhi = subwrd(rec3,6)
xd = xsiz - xhi
*
* Decide if horizontal or vertical color bar
* and set up constants.
*
if (ylo<0.6 & xd<1.0)
say "Not enough room in plot for a colorbar"
return
endif
cnum = subwrd(shdinfo,5)
if (ylo<0.6 | xd>1.5)
xl = xhi + xd/2 - 0.4
xr = xl + 0.2
xwid = 0.2
ywid = 0.5
if (ywid*cnum > ysiz*0.8)
ywid = ysiz*0.8/cnum
endif
ymid = ysiz/2
yb = ymid - ywid*cnum/2
'set string 1 l 5'
vert = 1
else
ymid = ylo/2
yt = ymid + 0.2
yb = ymid
xmid = xsiz/2
xwid = 0.8
if (xwid*cnum > xsiz*0.8)
xwid = xsiz*0.8/cnum
endif
xl = xmid - xwid*cnum/2
'set string 1 tc 5'
vert = 0
endif
*
* Plot colorbar
*
'set strsiz 0.12 0.13'
num = 0
while (num<cnum)
rec = sublin(shdinfo,num+2)
col = subwrd(rec,1)
hi = subwrd(rec,3)
'set line 'col
if (vert)
yt = yb + ywid
else
xr = xl + xwid
endif
'draw recf 'xl' 'yb' 'xr' 'yt
if (num<cnum-1)
if (vert)
'draw string '%(xr+0.05)%' 'yt' 'hi
else
'draw string 'xr' '%(yb-0.05)%' 'hi
endif
endif
num = num + 1
if (vert); yb = yt;
else; xl = xr; endif;
endwhile</pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 9:45 PM, Stephen McMillan <span dir="ltr"><<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, you should be able to do it for temperatures against time. Regarding your "issue with running the char"...it would help if you provided a sample of your script that has the issue, as well as the result (image and/or screen result). Otherwise, I would have to guess what you mean.<span class="HOEnZb"><font color="#888888"><div>Stephen</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 6:31 PM, <span dir="ltr"><<a href="mailto:mfinlayson@wesleyan.edu" target="_blank">mfinlayson@wesleyan.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I also have an issue with running the char. I can see the shaded colors but not the numerical values that correspond with them.<br><br></div><span><div><br>On Dec 28, 2014, at 1:41 PM, Stephen McMillan <<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>> wrote:<br><br></div></span><div><div><blockquote type="cite"><div><div dir="ltr">Marjahn,<div>Are you trying to plot lat/lon labels, or something else? If lat/lon, and you're using nps or sps projection, you won't get them. Use 'set mproj latlon' instead. Otherwise, you can use 'draw string...' function to draw them.</div><div>Stephen</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 1:26 PM, Marjahn Finlayson <span dir="ltr"><<a href="mailto:mfinlayson@wesleyan.edu" target="_blank">mfinlayson@wesleyan.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey everyone, <div><br></div><div>I'm trying to plot data in grads, but the numerical labels in the xlab and ylab do not appear whenever I create charts or maps.</div><div>I've tried the 'set xlab on' function and nothing's happened. </div><div>Help!</div><div><br></div><div> <br></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>gradsusr mailing list</span><br><span><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a></span><br><span><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a></span><br></div></blockquote></div></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>