Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.2K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

How can I make ListPlot output a graphic in Mathematica 9?

POSTED BY: Andy Gardner
3 Replies

Thank-you Nasser & Bill -- that's solved my problem.

Best wishes

Andy

POSTED BY: Andy Gardner
Posted 12 years ago

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}]
POSTED BY: Bill Simpson

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

data = {0.1, 0.4, 0.3};
p = Last@Reap[Do[Sow@ListPlot[data, Joined -> True], {10}]];
Grid[p]
POSTED BY: Nasser M. Abbasi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard