Thanks, your answers really helped me out.
I still have one question though. In order to plot a series of discrete data, I have to resample my data. I use a rather simple algorithm, which simply returns the value of an array element, that is in the vicinity (dx,dy) of the real x and y coordinates (x_data, y_data):
for (int i=0;i<N;i++)
for(int j=0;j<N;j++)
if((fabs(x_axis[i]-x)<=dx)&&(fabs(y_axis[j]-y)<=dy))
return matrix[i][j];
for (int i=0;i<N;i++)
for(int j=0;j<N;j++)
if((fabs(x_axis[i]-x)<=dx)&&(fabs(y_axis[j]-y)<=dy))
return matrix[i][j];
To copy to clipboard, switch view to plain text mode
This algorithm works just fine and is easy to configure, but it is rather slow when working with big (280x280) arrays. Is there a way to speed up the plotting process for big datasets?
Bookmarks