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

Re: tabbed panes

Hi Adele,

> 2. In a simple 2D plot, the image plots outside the axes (I also have an
> older version of visAD, dated about a year ago, and this does not happen
> with that version).
>
> Both of these can be seen in a simplified version of my app, which I have
> attached.

Thanks for the test program. I don't know anything about tabbed panes,
but I do know why the image now extends beyond the box bounds for
texture maps. In the past, VisAD displayed textures so N pixels (say
with integer coordinates 0, 1, ..., N-1) fit exactly in the box with
the default setRange() of (0.0, N-1.0). But this really made the
pixels of slightly the wrong size, with N of them squeezing into a
range of N-1. Some satellite scientists doing precise pixel
computations noticed this error, and I fixed it. I try to resist
such changes that will affect folks applications, but in this case
it was hard to argue that the old behavior was anything but an
error.

You could perhaps work around it using Curtis's suggestion, or you
might try an explicit setRange(-0.5, N-0.5) (or whatever is
appropriate for your coordinates).

Good luck,
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