Hello!
I want to make an 2D-array to send to intensity graph. The diffucult part of this is that this array can be very big. At most I have to plot an 8000x8000 array, but I have a variable called LENGTH, and with that I say that every LENGTH_X and LENGTH_Y,(both same value) step is the one I want to use. So instead of having an 8000x8000=64 000 000, if the LENGTH is 10, I need an array of "just" 800x800=640 000, that means a lot of time saved. The Intensity graph need this 2D-array all the time to be updated,(and I must update during the program execution). So for every XY-value I have a randomly color. How can I do to only send in those XY value I realy use, and not an array of 64 000 000 where the most of the indexes are empty?
Example. I start to scan my picture that is at most 8000x8000, at point X_START = 1000, X_STOP = 2000, Y_START = 1, Y_STOP = 10, LENGTH is 10 for both X and Y. This means that I need an array of (2000-1000) x 10 = 10 000. But because the length-variable is 10 for both X and Y I only will scan every 10:th step, so what I realy need is an array of: ( 10 000 / 10) x (10 / 10) = 1000 x 1 = 1000.
But still I need to plot on the Intensity Graph the value of the old array, for example:
X=1000,Y=1,color=5
X=1010,Y=1,color=5 ....
How can I do this instead of indexing an 2D-array and indes point 1000,1 with value 5?