Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2116

Re: Plots During Iterations

From "M.Roellig" <markus.roellig@googlemail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Plots During Iterations
Date 2011-05-05 09:24 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iptqcq$ddn$1@smc.vnet.net> (permalink)
References <ipsohh$8a2$1@smc.vnet.net>

Show all headers | View raw


On 5 Mai, 01:46, "Kevin J. McCann" <Kevin.McC...@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

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Plots During Iterations "Kevin J. McCann" <Kevin.McCann@umbc.edu> - 2011-05-04 23:46 +0000
  Re: Plots During Iterations "M.Roellig" <markus.roellig@googlemail.com> - 2011-05-05 09:24 +0000
  Re: Plots During Iterations "Nasser M. Abbasi" <nma@12000.org> - 2011-05-05 09:24 +0000

csiph-web