I have a scanning xy stage controlled by two For loops: For loop 1 contains the x movement and For loop 2 contains the y movement and For loop 1, ie. the stage scans once the range of x, then moves one step in y and scans the range of x etc. A TTL pulse is collected according to its position in x and y. I want to graph the result with an intensity graph for the counts per position but I have data incoherence problems