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







<p class=""><span class="">*</span></p>
<p class=""><span class="">*  Script to plot a colorbar</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*  The script will assume a colorbar is wanted even </span><span class="">if</span><span class=""> there is </span></p>
<p class=""><span class="">*  </span><span class="">not</span><span class=""> room -- it will plot on the side or the bottom </span><span class="">if</span><span class=""> there is</span></p>
<p class=""><span class="">*  room </span><span class="">in</span><span class=""> either place, otherwise it will plot along the bottom and</span></p>
<p class=""><span class="">*  overlay labels there </span><span class="">if</span><span class=""> </span><span class="">any</span><span class="">.  This can be dealt with via </span></p>
<p class=""><span class="">*  the </span><span class="">&#39;set parea&#39;</span><span class=""> command.  In version </span><span class="">2</span><span class=""> the </span><span class="">default</span><span class=""> parea will</span></p>
<p class=""><span class="">*  be changed, but we want to guarantee upward compatibility </span><span class="">in</span></p>
<p class=""><span class="">*  sub-releases.</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*<span class="">        </span>modifications by mike fiorino </span><span class="">940614</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*<span class="">        </span>- the extreme colors are plotted as triangles</span></p>
<p class=""><span class="">*<span class="">        </span>- the colors are boxed </span><span class="">in</span><span class=""> white</span></p>
<p class=""><span class="">*<span class="">        </span>- input arguments </span><span class="">in</span><span class=""> during a run execution:</span></p>
<p class=""><span class="">* </span></p>
<p class=""><span class="">*<span class="">        </span>run cbarn sf vert xmid ymid</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*<span class="">        </span>sf   - scale the whole bar </span><span class="">1.0</span><span class=""> = original </span><span class="">0.5</span><span class=""> half the size, etc.</span></p>
<p class=""><span class="">*<span class="">        </span>vert - </span><span class="">0</span><span class=""> FORCES a horizontal bar = </span><span class="">1</span><span class=""> a vertical bar</span></p>
<p class=""><span class="">*<span class="">        </span>xmid - the x position on the virtual page the center the bar</span></p>
<p class=""><span class="">*<span class="">        </span>ymid - the x position on the virtual page the center the bar</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*<span class="">        </span></span><span class="">if</span><span class=""> vert,xmid,ymid are </span><span class="">not</span><span class=""> specified, they are selected</span></p>
<p class=""><span class="">*<span class="">        </span>as </span><span class="">in</span><span class=""> the original algorithm</span></p>
<p class=""><span class="">*  </span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">function colorbar (args)</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">sf=subwrd(args,</span><span class="">1</span><span class="">)</span></p>
<p class=""><span class="">vert=subwrd(args,</span><span class="">2</span><span class="">)</span></p>
<p class=""><span class="">xmid=subwrd(args,</span><span class="">3</span><span class="">)</span></p>
<p class=""><span class="">ymid=subwrd(args,</span><span class="">4</span><span class="">)</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">if</span><span class="">(sf=</span><span class="">&#39;&#39;</span><span class="">);sf=</span><span class="">1.0</span><span class="">;endif</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*  Check shading information</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">  </span><span class="">&#39;query shades&#39;</span></p>
<p class=""><span class="">  shdinfo = result</span></p>
<p class=""><span class="">  </span><span class="">if</span><span class=""> (subwrd(shdinfo,</span><span class="">1</span><span class="">)=</span><span class="">&#39;None&#39;</span><span class="">) </span></p>
<p class=""><span class="">    say </span><span class="">&#39;Cannot plot color bar: No shading information&#39;</span></p>
<p class=""><span class="">    </span><span class="">return</span></p>
<p class=""><span class="">  endif</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">* </span></p>
<p class=""><span class="">*  Get plot size info</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">  </span><span class="">&#39;query gxinfo&#39;</span></p>
<p class=""><span class="">  rec2 = sublin(result,</span><span class="">2</span><span class="">)</span></p>
<p class=""><span class="">  rec3 = sublin(result,</span><span class="">3</span><span class="">)</span></p>
<p class=""><span class="">  rec4 = sublin(result,</span><span class="">4</span><span class="">)</span></p>
<p class=""><span class="">  xsiz = subwrd(rec2,</span><span class="">4</span><span class="">)</span></p>
<p class=""><span class="">  ysiz = subwrd(rec2,</span><span class="">6</span><span class="">)</span></p>
<p class=""><span class="">  ylo = subwrd(rec4,</span><span class="">4</span><span class="">)</span></p>
<p class=""><span class="">  xhi = subwrd(rec3,</span><span class="">6</span><span class="">)</span></p>
<p class=""><span class="">  xd = xsiz - xhi</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  ylolim=</span><span class="">0.6</span><span class="">*sf</span></p>
<p class=""><span class="">  xdlim1=</span><span class="">1.0</span><span class="">*sf</span></p>
<p class=""><span class="">  xdlim2=</span><span class="">1.5</span><span class="">*sf  </span></p>
<p class=""><span class="">  barsf=</span><span class="">0.8</span><span class="">*sf</span></p>
<p class=""><span class="">  yoffset=</span><span class="">0.2</span><span class="">*sf</span></p>
<p class=""><span class="">  stroff=</span><span class="">0.05</span><span class="">*sf</span></p>
<p class=""><span class="">  strxsiz=</span><span class="">0.12</span><span class="">*sf</span></p>
<p class=""><span class="">  strysiz=</span><span class="">0.13</span><span class="">*sf</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*  Decide </span><span class="">if</span><span class=""> horizontal or vertical color bar</span></p>
<p class=""><span class="">*  and set up constants.</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">  </span><span class="">if</span><span class=""> (ylo&lt;ylolim &amp; xd&lt;xdlim1) </span></p>
<p class=""><span class="">    say </span><span class="">&quot;Not enough room in plot for a colorbar&quot;</span></p>
<p class=""><span class="">    </span><span class="">return</span></p>
<p class=""><span class="">  endif</span></p>
<p class=""><span class="">  cnum = subwrd(shdinfo,</span><span class="">5</span><span class="">)</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*<span class="">        </span>logic </span><span class="">for</span><span class=""> setting the bar orientation with user overides</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">  </span><span class="">if</span><span class=""> (ylo&lt;ylolim | xd&gt;xdlim1)</span></p>
<p class=""><span class="">    vchk = </span><span class="">1</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class="">(vert = </span><span class="">0</span><span class="">) ; vchk = </span><span class="">0</span><span class=""> ; endif</span></p>
<p class=""><span class="">  </span><span class="">else</span></p>
<p class=""><span class="">    vchk = </span><span class="">0</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class="">(vert = </span><span class="">1</span><span class="">) ; vchk = </span><span class="">1</span><span class=""> ; endif</span></p>
<p class=""><span class="">  endif</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*<span class="">        </span>vertical bar</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  </span><span class="">if</span><span class=""> (vchk = </span><span class="">1</span><span class=""> )</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">    </span><span class="">if</span><span class="">(xmid = </span><span class="">&#39;&#39;</span><span class="">) ; xmid = xhi+xd/</span><span class="">2</span><span class=""> ; endif</span></p>
<p class=""><span class="">    xwid = </span><span class="">0.2</span><span class="">*sf</span></p>
<p class=""><span class="">    ywid = </span><span class="">0.5</span><span class="">*sf</span></p>
<p class=""><span class="">    </span></p>
<p class=""><span class="">    xl = xmid-xwid/</span><span class="">2</span></p>
<p class=""><span class="">    xr = xl + xwid</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class=""> (ywid*cnum &gt; ysiz*barsf) </span></p>
<p class=""><span class="">      ywid = ysiz*barsf/cnum</span></p>
<p class=""><span class="">    endif</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class="">(ymid = </span><span class="">&#39;&#39;</span><span class="">) ; ymid = ysiz/</span><span class="">2</span><span class=""> ; endif</span></p>
<p class=""><span class="">    yb = ymid - ywid*cnum/</span><span class="">2</span></p>
<p class=""><span class="">    </span><span class="">&#39;set string 0 l 5&#39;</span></p>
<p class=""><span class="">    vert = </span><span class="">1</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  </span><span class="">else</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*<span class="">        </span>horizontal bar</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">    ywid = </span><span class="">0.4</span></p>
<p class=""><span class="">    xwid = </span><span class="">0.8</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">    </span><span class="">if</span><span class="">(ymid = </span><span class="">&#39;&#39;</span><span class="">) ; ymid = ylo/</span><span class="">2</span><span class="">-ywid/</span><span class="">2</span><span class=""> ; endif</span></p>
<p class=""><span class="">    yt = ymid + yoffset</span></p>
<p class=""><span class="">    yb = ymid</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class="">(xmid = </span><span class="">&#39;&#39;</span><span class="">) ; xmid = xsiz/</span><span class="">2</span><span class=""> ; endif</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class=""> (xwid*cnum &gt; xsiz*barsf)</span></p>
<p class=""><span class="">      xwid = xsiz*barsf/cnum</span></p>
<p class=""><span class="">    endif</span></p>
<p class=""><span class="">    xl = xmid - xwid*cnum/</span><span class="">2</span></p>
<p class=""><span class="">    </span><span class="">&#39;set string 0 tc 5&#39;</span></p>
<p class=""><span class="">    vert = </span><span class="">0</span></p>
<p class=""><span class="">  endif</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">*</span></p>
<p class=""><span class="">*  Plot colorbar</span></p>
<p class=""><span class="">*</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">  </span><span class="">&#39;set strsiz &#39;</span><span class="">strxsiz</span><span class="">&#39; &#39;</span><span class="">strysiz</span></p>
<p class=""><span class="">  num = </span><span class="">0</span></p>
<p class=""><span class="">  </span><span class="">while</span><span class=""> (num&lt;cnum) </span></p>
<p class=""><span class="">    rec = sublin(shdinfo,num</span><span class="">+2</span><span class="">)</span></p>
<p class=""><span class="">    col = subwrd(rec,</span><span class="">1</span><span class="">)</span></p>
<p class=""><span class="">    hi = subwrd(rec,</span><span class="">3</span><span class="">)</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class=""> (vert) </span></p>
<p class=""><span class="">      yt = yb + ywid</span></p>
<p class=""><span class="">    </span><span class="">else</span><span class=""> </span></p>
<p class=""><span class="">      xr = xl + xwid</span></p>
<p class=""><span class="">    endif</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">*   Draw the left/bottom triangle</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class=""> (num = </span><span class="">0</span><span class="">)</span></p>
<p class=""><span class="">      </span><span class="">if</span><span class="">(vert = </span><span class="">1</span><span class="">)</span></p>
<p class=""><span class="">        xm = (xl+xr)*</span><span class="">0.5</span></p>
<p class=""><span class="">        </span><span class="">&#39;set line &#39;</span><span class="">col</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw polyf &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xm</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yt</span></p>
<p class=""><span class="">        </span><span class="">&#39;set line 0 1 5&#39;</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xm</span><span class="">&#39; &#39;</span><span class="">yb</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xm</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yt</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yt</span></p>
<p class=""><span class="">      </span><span class="">else</span></p>
<p class=""><span class="">        ym = (yb+yt)*</span><span class="">0.5</span></p>
<p class=""><span class="">        </span><span class="">&#39;set line &#39;</span><span class="">col</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw polyf &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">ym</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">ym</span></p>
<p class=""><span class="">        </span><span class="">&#39;set line 0 1 5&#39;</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">ym</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yb</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yt</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">ym</span></p>
<p class=""><span class="">      endif</span></p>
<p class=""><span class="">    endif</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">*   Draw the middle boxes</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class=""> (num!=</span><span class="">0</span><span class=""> &amp; num!= cnum</span><span class="">-1</span><span class="">)</span></p>
<p class=""><span class="">      </span><span class="">&#39;set line &#39;</span><span class="">col</span></p>
<p class=""><span class="">      </span><span class="">&#39;draw recf &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yt</span></p>
<p class=""><span class="">      </span><span class="">&#39;set line 0 1 5&#39;</span></p>
<p class=""><span class="">      </span><span class="">&#39;draw rec  &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yt</span></p>
<p class=""><span class="">    endif</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">*   Draw the right/top triangle</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class=""> (num = cnum</span><span class="">-1</span><span class="">)</span></p>
<p class=""><span class="">      </span><span class="">if</span><span class=""> (vert = </span><span class="">1</span><span class="">)</span></p>
<p class=""><span class="">        </span><span class="">&#39;set line &#39;</span><span class="">col</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw polyf &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xm</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span></p>
<p class=""><span class="">        </span><span class="">&#39;set line 0 1 5&#39;</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xm</span><span class="">&#39; &#39;</span><span class="">yt</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xm</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yb</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span></p>
<p class=""><span class="">      </span><span class="">else</span></p>
<p class=""><span class="">        </span><span class="">&#39;set line &#39;</span><span class="">col</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw polyf &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">ym</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">ym</span></p>
<p class=""><span class="">        </span><span class="">&#39;set line 0 1 5&#39;</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">ym</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yb</span><span class="">&#39; &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yt</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw line &#39;</span><span class="">xl</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">ym</span></p>
<p class=""><span class="">      endif</span></p>
<p class=""><span class="">    endif</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">*   Put numbers under each segment of the color key</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class=""> (num &lt; cnum</span><span class="">-1</span><span class="">)</span></p>
<p class=""><span class="">      </span><span class="">if</span><span class=""> (vert) </span></p>
<p class=""><span class="">        xp=xr+stroff</span></p>
<p class=""><span class="">        </span><span class="">&#39;draw string &#39;</span><span class="">xp</span><span class="">&#39; &#39;</span><span class="">yt</span><span class="">&#39; &#39;</span><span class="">hi</span></p>
<p class=""><span class="">      </span><span class="">else</span></p>
<p class=""><span class="">        yp=yb-stroff</span></p>
<p class=""><span class="">       </span><span class="">&#39;draw string &#39;</span><span class="">xr</span><span class="">&#39; &#39;</span><span class="">yp</span><span class="">&#39; &#39;</span><span class="">hi</span></p>
<p class=""><span class="">      endif</span></p>
<p class=""><span class="">    endif</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">*   Reset variables </span><span class="">for</span><span class=""> next loop execution</span></p>
<p class=""><span class="">    </span><span class="">if</span><span class=""> (vert) </span></p>
<p class=""><span class="">      yb = yt</span></p>
<p class=""><span class="">    </span><span class="">else</span></p>
<p class=""><span class="">      xl = xr</span></p>
<p class=""><span class="">    endif</span></p>
<p class=""><span class="">    num = num + </span><span class="">1</span></p>
<p class=""><span class="">  endwhile</span></p>
<p class=""><span class="">return</span></p></div><div>****************************************</div><div class="gmail_extra"><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 class=""><div class="h5"><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">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 class="gmail_signature"><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>
</div></div>