// This macro demonstrates how to use the Plot.replace() // function, added in ImageJ 1.52i. n = 200; iterations = 250; x = Array.getSequence(n); y = newArray(n); Plot.create("Random Data", "X", "Y"); Plot.setFrameSize(700, 400 ); Plot.setLineWidth(2); Plot.setFontSize(18); Plot.setLimits(0, n, -3, 3); Plot.add("Line", x, y); Plot.show(); for (i=0; i<=iterations; i++) { for (j=0; j