Re: Plots During Iterations
- To: mathgroup at smc.vnet.net
- Subject: [mg118638] Re: Plots During Iterations
- From: "M.Roellig" <markus.roellig at googlemail.com>
- Date: Thu, 5 May 2011 05:24:47 -0400 (EDT)
- References: <ipsohh$8a2$1@smc.vnet.net>
On 5 Mai, 01:46, "Kevin J. McCann" <Kevin.McC... at umbc.edu> wrote:
> I have a bit of code that implements the Relaxation Method for the
> solution of Laplace's equation for an E&M problem. I would like to make
> a ListContourPlot of the potential after each step in the iteration.
> However, when I put the plot inside the For loop, there is no plot - the
> calculation runs fine, though. Is there a way to do this?
>
> Thanks,
>
> Kevin
Hi,
wrap a Print[] around the Plot command, e.g.:
Do[Print[Plot[x^i, {x, 1, 5}]], {i, 0, 3}]
Cheers,
Markus