Thank-you Nasser & Bill -- that's solved my problem.
Best wishes
Andy
Try this
data2 = {0.2, 0.3, 0.4}; Print[ListPlot[data1, Joined -> True]]; data1 = {0.1, 0.4, 0.3}; Print[ListPlot[data2, Joined -> True]]
and this
data = {0.1, 0.4, 0.3}; Do[ Print[ListPlot[data, Joined -> True]], {10}]
Inside Do need to use Print to get the output to display. Also ";" suppresses output that is why you do not see the plot in the first case. For the loop, you can try
Do
Print
data = {0.1, 0.4, 0.3}; p = Last@Reap[Do[Sow@ListPlot[data, Joined -> True], {10}]]; Grid[p]