//Variance float[] data; //data Array int count = 0; // Loop count float r = 0.75; // scale for view window D2Graph tG; //2Dgraph Class void setup() { size(600, 400, P3D); frameRate(60); background(255); smooth(); tG = new D2Graph(int(width*r), int(height*r), "Time[S]", "Output[V]"); } void draw() { noLoop(); data = new float[int(width*r)]; for (int i=0; i maxRange ? abs(y[i]) : maxRange); } pushMatrix(); { clear(); translate(xsp, Y_LENGTH/2+ysp); scale(1, -1); strokeWeight(1); for (int i=0; i maxRange ? abs(y[i]) : maxRange); } clear(); translate(xsp, Y_LENGTH/2+ysp); scale(1, -1); strokeWeight(1); for (int i=0; i