//03.05.21, 14:19 close("Example*"); x = newArray(1,2,3,4,5); y1 = newArray(NaN, NaN, 2, 3, NaN); y2 = newArray(NaN, 1, 4, 1, NaN); Plot.create("Example Plot", "X", "Y"); Plot.setColor("red", "red"); Plot.add("circle", x, y1); Plot.setColor("blue", "blue"); Plot.add("circle", x, y2); Plot.show; Plot.setLimitsToFit(); Plot.showValues(); waitForUser("Remove NaNs"); Plot.removeNaNs; Plot.showValues();