NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: axis color

Hi-

Tom Whittaker wrote:
> 
> The doc for showAxesScales() and setAxesScalesFont() is in
> visad.python.JPythonMethods.  Neither of these has any options for
> setting the colors, however.  You'll have to roll your own...
> 
> ...something like (Don will correct me if this is wrong):
> 
> as = scalarmap.getAxisScale()
> as.setColor(java.awt.Color.black)
> 
> for each 'scalarmap' for your axes...

If you want them all the same color, you could call:

display.getDisplayRenderer().setForegroundColor(r, g, b);

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: