Re: [visad] Linear*DSet progression arguments... bug or feature?

Hi Stefan-

I'm not sure what you mean by "the plot looks very strange". Linear*DSets are backed by float values, so when you use very large numbers, you will run into precision problems. If you need that type of precision, then you could use the Gridded*DDoubleSet. Unfortunately, there are no Linear*DDoubleSet classes.

Don

On 3/12/12 9:26 AM, Stefan Below wrote:
Hello,

i am just start learning this powerful visualisation library and now
some questions come up.

When i use Linear*DSet with arithmetic progression, i get different
visualisation results when first/last arguments are quite high.

For example, if i use this
domain_set = new Linear2DSet(domain_tuple, 0.0, NROWS, NROWS,
0, NCOLS, NCOLS);

the plot looks fine.

But when i use
long xEnd=System.currentTimeMillis();
long xStart = xEnd-NCOLS;
domain_set = new Linear2DSet(domain_tuple, 0.0, NROWS, NROWS,
0, NCOLS, NCOLS);

(Look at the attachment for a full working example , line 112ff)

The plot looks very strange.
I expect that the plot is the same except the labels of the xAxis.

Maybe someone can give me a hint?

Or do i have to set the Axis values in an other way?

Thanks,
Stefan Below






_______________________________________________
visad mailing list
visad@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/

--
Don Murray
NOAA/ESRL/PSD and CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/



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