<div dir="ltr">Hey Tom,<div><br></div><div>I&#39;m using grads 2.1 now. (I was using grads 2.0.2 before.) </div><div>Here&#39;s my script:</div><div><br></div><div><div>ga-&gt; open rhsa.aso.ctl                                                               </div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>Scanning description file:  rhsa.aso.ctl</div></div><div><div>Data file rhsa.aso is open as file 1</div></div><div><div>LON set to -179.375 104.375 </div></div><div><div>LAT set to -89.375 89.375 </div></div><div><div>LEV set to 1000 1000 </div></div><div><div>Time values set: 1979:1:1:0 1979:1:1:0 </div></div><div><div>E set to 1 1 </div></div></blockquote><div><div>ga-&gt; set gxout shaded</div><div>ga-&gt; d rh</div></div><div><div>ga-&gt; run cbarn</div></div><div><br></div><div>After run the basemap script, I get the following picture as a result.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 31, 2014 at 1:41 PM, Thomas Robinson <span dir="ltr">&lt;<a href="mailto:ter@hawaii.edu" target="_blank">ter@hawaii.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Aloha Marjahn, <div><br></div><div>Can you post your entire script or list of commands so that we can see what you&#39;re doing?  Also, are you using grads or opengrads, and what version are you using?</div><div><br></div><div>-Tom</div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Dec 30, 2014 at 7:24 PM, Marjahn Finlayson <span dir="ltr">&lt;<a href="mailto:mfinlayson@wesleyan.edu" target="_blank">mfinlayson@wesleyan.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Thomas,<div><br></div><div>I tried both solutions and neither worked. The numbers on the xlab and ylab are still not appearing. Even when I downloaded the new cbarn_black, the color was only outlined in black. The numerical values remained missing. </div><span><font color="#888888"><div><br></div><div>Marjahn</div><div><br></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 29, 2014 at 4:33 PM, Thomas Robinson <span dir="ltr">&lt;<a href="mailto:ter@hawaii.edu" target="_blank">ter@hawaii.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Aloha Marjahn, <div><br></div><div>The problem is you are using a white background with white letters and numbers.  There are two solutions:</div><div><br></div><div>1.  Using the latest version of GrADS fixed this problem for me.  When I used opengrads, I had this problem.</div><div>2.  Use the following commands:</div><div><div>** Set background to white                                                   </div><div>       &#39;set background 1&#39;</div><div>** Clear to get the white background                                         </div><div>&#39;clear&#39;</div></div><div><div>*** Set strings to black</div><div>       &#39;set string 0&#39;</div><div>*** Set the map to black</div><div>       &#39;set map 0&#39;</div><div>*** Set the labels and title to black</div><div>       &#39;set annot 0&#39;</div></div><div><br></div><div>As for the cbar script, you need to kinda do the same thing.  I attached a modified cbarn script (<a href="http://cbarn_black.gs" target="_blank">cbarn_black.gs</a>) that changes the the bar and numbers to black.  </div><div><br></div><div>I hope this is helpful!  I included the text of the cbarn_black script below.</div><div><br></div><div>-Tom</div><div><span>







<p><span>*</span></p>
<p><span>*  Script to plot a colorbar</span></p>
<p><span>*</span></p>
<p><span>*  The script will assume a colorbar is wanted even </span><span>if</span><span> there is </span></p>
<p><span>*  </span><span>not</span><span> room -- it will plot on the side or the bottom </span><span>if</span><span> there is</span></p>
<p><span>*  room </span><span>in</span><span> either place, otherwise it will plot along the bottom and</span></p>
<p><span>*  overlay labels there </span><span>if</span><span> </span><span>any</span><span>.  This can be dealt with via </span></p>
<p><span>*  the </span><span>&#39;set parea&#39;</span><span> command.  In version </span><span>2</span><span> the </span><span>default</span><span> parea will</span></p>
<p><span>*  be changed, but we want to guarantee upward compatibility </span><span>in</span></p>
<p><span>*  sub-releases.</span></p>
<p><span>*</span></p>
</span><p><span>*</span></p>
<p><span>*<span>        </span>modifications by mike fiorino </span><span>940614</span></p>
<p><span>*</span></p>
<p><span>*<span>        </span>- the extreme colors are plotted as triangles</span></p>
<p><span>*<span>        </span>- the colors are boxed </span><span>in</span><span> white</span></p>
<p><span>*<span>        </span>- input arguments </span><span>in</span><span> during a run execution:</span></p>
<p><span>* </span></p>
<p><span>*<span>        </span>run cbarn sf vert xmid ymid</span></p>
<p><span>*</span></p>
<p><span>*<span>        </span>sf   - scale the whole bar </span><span>1.0</span><span> = original </span><span>0.5</span><span> half the size, etc.</span></p>
<p><span>*<span>        </span>vert - </span><span>0</span><span> FORCES a horizontal bar = </span><span>1</span><span> a vertical bar</span></p>
<p><span>*<span>        </span>xmid - the x position on the virtual page the center the bar</span></p>
<p><span>*<span>        </span>ymid - the x position on the virtual page the center the bar</span></p>
<p><span>*</span></p>
<p><span>*<span>        </span></span><span>if</span><span> vert,xmid,ymid are </span><span>not</span><span> specified, they are selected</span></p>
<p><span>*<span>        </span>as </span><span>in</span><span> the original algorithm</span></p>
<p><span>*  </span></p>
<p><span></span><br></p>
<p><span>function colorbar (args)</span></p>
<p><span></span><br></p>
<p><span>sf=subwrd(args,</span><span>1</span><span>)</span></p>
<p><span>vert=subwrd(args,</span><span>2</span><span>)</span></p>
<p><span>xmid=subwrd(args,</span><span>3</span><span>)</span></p>
<p><span>ymid=subwrd(args,</span><span>4</span><span>)</span></p>
<p><span></span><br></p>
<p><span>if</span><span>(sf=</span><span>&#39;&#39;</span><span>);sf=</span><span>1.0</span><span>;endif</span></p><span>
<p><span></span><br></p>
<p><span>*</span></p>
<p><span>*  Check shading information</span></p>
<p><span>*</span></p>
<p><span>  </span><span>&#39;query shades&#39;</span></p>
<p><span>  shdinfo = result</span></p>
<p><span>  </span><span>if</span><span> (subwrd(shdinfo,</span><span>1</span><span>)=</span><span>&#39;None&#39;</span><span>) </span></p>
<p><span>    say </span><span>&#39;Cannot plot color bar: No shading information&#39;</span></p>
<p><span>    </span><span>return</span></p>
<p><span>  endif</span></p>
<p><span></span><br></p>
<p><span>* </span></p>
<p><span>*  Get plot size info</span></p>
<p><span>*</span></p>
<p><span>  </span><span>&#39;query gxinfo&#39;</span></p>
<p><span>  rec2 = sublin(result,</span><span>2</span><span>)</span></p>
<p><span>  rec3 = sublin(result,</span><span>3</span><span>)</span></p>
<p><span>  rec4 = sublin(result,</span><span>4</span><span>)</span></p>
<p><span>  xsiz = subwrd(rec2,</span><span>4</span><span>)</span></p>
<p><span>  ysiz = subwrd(rec2,</span><span>6</span><span>)</span></p>
<p><span>  ylo = subwrd(rec4,</span><span>4</span><span>)</span></p>
<p><span>  xhi = subwrd(rec3,</span><span>6</span><span>)</span></p>
<p><span>  xd = xsiz - xhi</span></p>
<p><span></span><br></p>
</span><p><span>  ylolim=</span><span>0.6</span><span>*sf</span></p>
<p><span>  xdlim1=</span><span>1.0</span><span>*sf</span></p>
<p><span>  xdlim2=</span><span>1.5</span><span>*sf  </span></p>
<p><span>  barsf=</span><span>0.8</span><span>*sf</span></p>
<p><span>  yoffset=</span><span>0.2</span><span>*sf</span></p>
<p><span>  stroff=</span><span>0.05</span><span>*sf</span></p>
<p><span>  strxsiz=</span><span>0.12</span><span>*sf</span></p>
<p><span>  strysiz=</span><span>0.13</span><span>*sf</span></p><span>
<p><span>*</span></p>
<p><span>*  Decide </span><span>if</span><span> horizontal or vertical color bar</span></p>
<p><span>*  and set up constants.</span></p>
<p><span>*</span></p>
</span><p><span>  </span><span>if</span><span> (ylo&lt;ylolim &amp; xd&lt;xdlim1) </span></p><span>
<p><span>    say </span><span>&quot;Not enough room in plot for a colorbar&quot;</span></p>
<p><span>    </span><span>return</span></p>
<p><span>  endif</span></p>
<p><span>  cnum = subwrd(shdinfo,</span><span>5</span><span>)</span></p>
</span><p><span>*</span></p>
<p><span>*<span>        </span>logic </span><span>for</span><span> setting the bar orientation with user overides</span></p>
<p><span>*</span></p>
<p><span>  </span><span>if</span><span> (ylo&lt;ylolim | xd&gt;xdlim1)</span></p>
<p><span>    vchk = </span><span>1</span></p>
<p><span>    </span><span>if</span><span>(vert = </span><span>0</span><span>) ; vchk = </span><span>0</span><span> ; endif</span></p>
<p><span>  </span><span>else</span></p>
<p><span>    vchk = </span><span>0</span></p>
<p><span>    </span><span>if</span><span>(vert = </span><span>1</span><span>) ; vchk = </span><span>1</span><span> ; endif</span></p>
<p><span>  endif</span></p>
<p><span>*</span></p>
<p><span>*<span>        </span>vertical bar</span></p>
<p><span>*</span></p>
<p><span></span><br></p>
<p><span>  </span><span>if</span><span> (vchk = </span><span>1</span><span> )</span></p>
<p><span></span><br></p>
<p><span>    </span><span>if</span><span>(xmid = </span><span>&#39;&#39;</span><span>) ; xmid = xhi+xd/</span><span>2</span><span> ; endif</span></p>
<p><span>    xwid = </span><span>0.2</span><span>*sf</span></p>
<p><span>    ywid = </span><span>0.5</span><span>*sf</span></p>
<p><span>    </span></p>
<p><span>    xl = xmid-xwid/</span><span>2</span></p><span>
<p><span>    xr = xl + xwid</span></p>
</span><p><span>    </span><span>if</span><span> (ywid*cnum &gt; ysiz*barsf) </span></p>
<p><span>      ywid = ysiz*barsf/cnum</span></p>
<p><span>    endif</span></p>
<p><span>    </span><span>if</span><span>(ymid = </span><span>&#39;&#39;</span><span>) ; ymid = ysiz/</span><span>2</span><span> ; endif</span></p><span>
<p><span>    yb = ymid - ywid*cnum/</span><span>2</span></p>
<p><span>    </span><span>&#39;set string 0 l 5&#39;</span></p>
<p><span>    vert = </span><span>1</span></p>
<p><span></span><br></p>
<p><span>  </span><span>else</span></p>
<p><span></span><br></p>
</span><p><span>*</span></p>
<p><span>*<span>        </span>horizontal bar</span></p>
<p><span>*</span></p>
<p><span></span><br></p>
<p><span>    ywid = </span><span>0.4</span></p>
<p><span>    xwid = </span><span>0.8</span></p>
<p><span></span><br></p>
<p><span>    </span><span>if</span><span>(ymid = </span><span>&#39;&#39;</span><span>) ; ymid = ylo/</span><span>2</span><span>-ywid/</span><span>2</span><span> ; endif</span></p>
<p><span>    yt = ymid + yoffset</span></p>
<p><span>    yb = ymid</span></p>
<p><span>    </span><span>if</span><span>(xmid = </span><span>&#39;&#39;</span><span>) ; xmid = xsiz/</span><span>2</span><span> ; endif</span></p>
<p><span>    </span><span>if</span><span> (xwid*cnum &gt; xsiz*barsf)</span></p>
<p><span>      xwid = xsiz*barsf/cnum</span></p><span>
<p><span>    endif</span></p>
<p><span>    xl = xmid - xwid*cnum/</span><span>2</span></p>
<p><span>    </span><span>&#39;set string 0 tc 5&#39;</span></p>
<p><span>    vert = </span><span>0</span></p>
<p><span>  endif</span></p>
<p><span></span><br></p>
<p><span></span><br></p>
<p><span>*</span></p>
<p><span>*  Plot colorbar</span></p>
<p><span>*</span></p>
<p><span></span><br></p>
<p><span></span><br></p>
</span><p><span>  </span><span>&#39;set strsiz &#39;</span><span>strxsiz</span><span>&#39; &#39;</span><span>strysiz</span></p><span>
<p><span>  num = </span><span>0</span></p>
<p><span>  </span><span>while</span><span> (num&lt;cnum) </span></p>
<p><span>    rec = sublin(shdinfo,num</span><span>+2</span><span>)</span></p>
<p><span>    col = subwrd(rec,</span><span>1</span><span>)</span></p>
<p><span>    hi = subwrd(rec,</span><span>3</span><span>)</span></p>
</span><p><span>    </span><span>if</span><span> (vert) </span></p><span>
<p><span>      yt = yb + ywid</span></p>
<p><span>    </span><span>else</span><span> </span></p>
<p><span>      xr = xl + xwid</span></p>
<p><span>    endif</span></p>
<p><span></span><br></p>
</span><p><span>*   Draw the left/bottom triangle</span></p>
<p><span>    </span><span>if</span><span> (num = </span><span>0</span><span>)</span></p>
<p><span>      </span><span>if</span><span>(vert = </span><span>1</span><span>)</span></p>
<p><span>        xm = (xl+xr)*</span><span>0.5</span></p>
<p><span>        </span><span>&#39;set line &#39;</span><span>col</span></p>
<p><span>        </span><span>&#39;draw polyf &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xm</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yt</span></p>
<p><span>        </span><span>&#39;set line 0 1 5&#39;</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xm</span><span>&#39; &#39;</span><span>yb</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xm</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yt</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yt</span></p>
<p><span>      </span><span>else</span></p>
<p><span>        ym = (yb+yt)*</span><span>0.5</span></p>
<p><span>        </span><span>&#39;set line &#39;</span><span>col</span></p>
<p><span>        </span><span>&#39;draw polyf &#39;</span><span>xl</span><span>&#39; &#39;</span><span>ym</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>ym</span></p>
<p><span>        </span><span>&#39;set line 0 1 5&#39;</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xl</span><span>&#39; &#39;</span><span>ym</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yb</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yt</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>ym</span></p>
<p><span>      endif</span></p>
<p><span>    endif</span></p>
<p><span></span><br></p>
<p><span>*   Draw the middle boxes</span></p>
<p><span>    </span><span>if</span><span> (num!=</span><span>0</span><span> &amp; num!= cnum</span><span>-1</span><span>)</span></p>
<p><span>      </span><span>&#39;set line &#39;</span><span>col</span></p><span>
<p><span>      </span><span>&#39;draw recf &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yt</span></p>
</span><p><span>      </span><span>&#39;set line 0 1 5&#39;</span></p>
<p><span>      </span><span>&#39;draw rec  &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yt</span></p>
<p><span>    endif</span></p>
<p><span></span><br></p>
<p><span>*   Draw the right/top triangle</span></p>
<p><span>    </span><span>if</span><span> (num = cnum</span><span>-1</span><span>)</span></p>
<p><span>      </span><span>if</span><span> (vert = </span><span>1</span><span>)</span></p>
<p><span>        </span><span>&#39;set line &#39;</span><span>col</span></p>
<p><span>        </span><span>&#39;draw polyf &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xm</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span></p>
<p><span>        </span><span>&#39;set line 0 1 5&#39;</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xm</span><span>&#39; &#39;</span><span>yt</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xm</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yb</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span></p>
<p><span>      </span><span>else</span></p>
<p><span>        </span><span>&#39;set line &#39;</span><span>col</span></p>
<p><span>        </span><span>&#39;draw polyf &#39;</span><span>xr</span><span>&#39; &#39;</span><span>ym</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>ym</span></p>
<p><span>        </span><span>&#39;set line 0 1 5&#39;</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xr</span><span>&#39; &#39;</span><span>ym</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yb</span><span>&#39; &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yt</span></p>
<p><span>        </span><span>&#39;draw line &#39;</span><span>xl</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>xr</span><span>&#39; &#39;</span><span>ym</span></p>
<p><span>      endif</span></p>
<p><span>    endif</span></p>
<p><span></span><br></p>
<p><span>*   Put numbers under each segment of the color key</span></p><span>
<p><span>    </span><span>if</span><span> (num &lt; cnum</span><span>-1</span><span>)</span></p>
<p><span>      </span><span>if</span><span> (vert) </span></p>
</span><p><span>        xp=xr+stroff</span></p>
<p><span>        </span><span>&#39;draw string &#39;</span><span>xp</span><span>&#39; &#39;</span><span>yt</span><span>&#39; &#39;</span><span>hi</span></p>
<p><span>      </span><span>else</span></p>
<p><span>        yp=yb-stroff</span></p>
<p><span>       </span><span>&#39;draw string &#39;</span><span>xr</span><span>&#39; &#39;</span><span>yp</span><span>&#39; &#39;</span><span>hi</span></p>
<p><span>      endif</span></p>
<p><span>    endif</span></p>
<p><span></span><br></p>
<p><span>*   Reset variables </span><span>for</span><span> next loop execution</span></p><span>
<p><span>    </span><span>if</span><span> (vert) </span></p>
<p><span>      yb = yt</span></p>
<p><span>    </span><span>else</span></p>
<p><span>      xl = xr</span></p>
<p><span>    endif</span></p>
<p><span>    num = num + </span><span>1</span></p>
</span><p><span>  endwhile</span></p>
<p><span>return</span></p></div><div>****************************************</div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Mon, Dec 29, 2014 at 11:05 AM, Stephen McMillan <span dir="ltr">&lt;<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Marjahn,<div><br></div><div>The cbar script only does the color bar.  It would help if you also included the portion of your script that sets up and generates the image, otherwise it&#39;s difficult to reproduce and evaluate your issue.</div><div><br></div><div>Stephen Mc</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 29, 2014 at 3:18 PM, Marjahn Finlayson <span dir="ltr">&lt;<a href="mailto:mfinlayson@wesleyan.edu" target="_blank">mfinlayson@wesleyan.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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 &#39;set parea&#39; 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
*
  &#39;query shades&#39;
  shdinfo = result
  if (subwrd(shdinfo,1)=&#39;None&#39;) 
    say &#39;Cannot plot color bar: No shading information&#39;
    return
  endif

*  Get plot size info
*
  &#39;query gxinfo&#39;
  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&lt;0.6 &amp; xd&lt;1.0) 
    say &quot;Not enough room in plot for a colorbar&quot;
    return
  endif
  cnum = subwrd(shdinfo,5)
  if (ylo&lt;0.6 | xd&gt;1.5)
    xl = xhi + xd/2 - 0.4
    xr = xl + 0.2
    xwid = 0.2
    ywid = 0.5
    if (ywid*cnum &gt; ysiz*0.8) 
      ywid = ysiz*0.8/cnum
    endif
    ymid = ysiz/2
    yb = ymid - ywid*cnum/2
    &#39;set string 1 l 5&#39;
    vert = 1
  else
    ymid = ylo/2
    yt = ymid + 0.2
    yb = ymid
    xmid = xsiz/2
    xwid = 0.8
    if (xwid*cnum &gt; xsiz*0.8)
      xwid = xsiz*0.8/cnum
    endif
    xl = xmid - xwid*cnum/2
    &#39;set string 1 tc 5&#39;
    vert = 0
  endif
*
*  Plot colorbar
*
  &#39;set strsiz 0.12 0.13&#39;
  num = 0
  while (num&lt;cnum) 
    rec = sublin(shdinfo,num+2)
    col = subwrd(rec,1)
    hi = subwrd(rec,3)
    &#39;set line &#39;col
    if (vert) 
      yt = yb + ywid
    else 
      xr = xl + xwid
    endif
    &#39;draw recf &#39;xl&#39; &#39;yb&#39; &#39;xr&#39; &#39;yt
    if (num&lt;cnum-1)
      if (vert) 
        &#39;draw string &#39;%(xr+0.05)%&#39; &#39;yt&#39; &#39;hi
      else
        &#39;draw string &#39;xr&#39; &#39;%(yb-0.05)%&#39; &#39;hi
      endif
    endif
    num = num + 1
    if (vert); yb = yt;
    else; xl = xr; endif;
  endwhile</pre></div></div><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">&lt;<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Yes, you should be able to do it for temperatures against time.  Regarding your &quot;issue with running the char&quot;...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><font color="#888888"><div>Stephen</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 28, 2014 at 6:31 PM,  <span dir="ltr">&lt;<a href="mailto:mfinlayson@wesleyan.edu" target="_blank">mfinlayson@wesleyan.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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 &lt;<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>&gt; 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&#39;re using nps or sps projection, you won&#39;t get them.  Use &#39;set mproj latlon&#39; instead.  Otherwise, you can use &#39;draw string...&#39; 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">&lt;<a href="mailto:mfinlayson@wesleyan.edu" target="_blank">mfinlayson@wesleyan.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hey everyone, <div><br></div><div>I&#39;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&#39;ve tried the &#39;set xlab on&#39; function and nothing&#39;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" 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" 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" 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><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div><div dir="ltr">Tom Robinson<br>Treasurer - Graduate Student Organization <br>Secretary - Student Athletic Fee Committee <br>Graduate Student - Department of Atmospheric Science <br></div></div>
</font></span></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" 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><br clear="all"><div><br></div>-- <br></div></div><div><div dir="ltr"><div><div class="h5">Tom Robinson<br>Treasurer - Graduate Student Organization <br>Secretary - Student Athletic Fee Committee <br>Graduate Student - Department of Atmospheric Science <br></div></div><a href="tel:732-718-2323" value="+17327182323" target="_blank">732-718-2323</a><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>