Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: questions about 2D ploting

First, please do NOT send questions to just me. Send them
to visad-list@xxxxxxxxxxxxxx

On Mon, 6 Jan 2003, Muztagh wrote:

> Thanks for your help. It's exactly what I want to find out.
> I've few more questions. I am trying to plot something looks like the
> attached jpeg file.
> My questions are:
> (1). Can I plot multiple "display boxes" in the same window, and put explain
> text for each box? If I can, which example should I look at?

Yes, see visad/rabin/Rain.java or visad/ss/SpreadSheet.java
for examples. If you use JPanels with no borders, they will
look like your jpeg.

> (2). How can I change the size of the "display box"?

Use ProjectionControl.setAspectCartesian().

> (3). How can I change the background color? (the default is black)

Use DisplayRenderer.setBackgroundColor().

I recommend spending some time with Ugo's tutorial.

Bill


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690