This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
(Moderators: fry, REAS)
   visualizing large datasets
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: visualizing large datasets  (Read 520 times)

visualizing large datasets
« on: Feb 1st, 2005, 10:20pm »

I am trying to visualize a large dataset. Mainly it is a scatter plot.
At first, I tried making an object and a Array containing myobject, which stored x and y coordinates. This was very slow, so I coded a simple array based implementation. (I have x[n], y[n]) and my loop reads these values and draws a pixel. Well, problem is when the dataset is large, I get an error saying that method setup has more than 65535 elements. putting the array on another method does not work as well.
Is there anyway I can read my data (from a file, database, etc)
Best Regards,
Oturan Boga

Re: visualizing large datasets
« Reply #1 on: Feb 1st, 2005, 11:12pm »

right, you can't declare an array with 65k elements inside the code, it's bad form anyways.  
you should read the data from a file, use loadStrings() to get the data, then splitStrings() or splitFloats or splitInts or whatever to convert it to the values you need.  
there are examples on those pages for how the code works.
Pages: 1 

« Previous topic | Next topic »