Re: change colors in JyVisAD?

Sorry, I meant to also add that the on-line doc and Windows & Linux installers are not yet updated (hope to be done by tomorrow - having trouble with the html formatter), but the on-line subs.py at:

  http://www.ssec.wisc.edu/~tomw/visadtutor/subs.py

is the latest-and-greatest...

tom

Tom Whittaker wrote:
Hi Frank:

In the current release of subs.py:

disp = subs.makeDisplay(maps)
disp.setBackgroundColor(c)
disp.setForegroundColor(c)

where 'c' may be a color name (as a string), like "white" or "blue", or it may be a java.awt.Color object.

Related:
disp.setCursorColor(c)
disp.setBoxColor(c)

tom

Frank Gibbons wrote:

Tom (and others),

The default for subs.makeDisplay() is to make a black background, and white foreground. Perusing the docs doesn't seem to allow any change to this. Is there another way to do this from Jython? White on black is certainly easy on the eyes when looking at a computer monitor, but difficult to work with on paper, since you can't write on the figures, and they don't incorporate well into publications. Ideally, I'd have a white background, with black foreground.

Thanks,

-Frank

PhD, Computational Biologist,
Harvard Medical School BCMP/SGM-322, 250 Longwood Ave, Boston MA 02115, USA. Tel: 617-432-3555 Fax: 617-432-3557 http://llama.med.harvard.edu/~fgibbons




--
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Cooperative Institute for Meteorological Satellite Studies
Phone/VoiceMail: 608.262.2759