macro "Test Plot Legend" { xValues = newArray(2,3,4,5,6,7); yValues = newArray(0.1, 0.7, 2.3, 2.8, 1, 0.6, 1.7); xValues1 = newArray(0.1, 0.45, 1.35, 2.5, 3.61,3.7,5,5.89,6.95); yValues1 = newArray(2,5.6,7.4,9,9.4,8.7,6.3,4.5,1.9); Plot.create("Test Plot with Legend", "X", "Y"); Plot.setLimits(0,8,0,10); Plot.setLineWidth(1); Plot.setColor("black","red"); Plot.add("connected", xValues1, yValues1); for (i=0; i