Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2113 > unrolled thread
| Started by | "Kevin J. McCann" <Kevin.McCann@umbc.edu> |
|---|---|
| First post | 2011-05-04 23:46 +0000 |
| Last post | 2011-05-05 09:24 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | "Kevin J. McCann" <Kevin.McCann@umbc.edu> |
|---|---|
| Date | 2011-05-04 23:46 +0000 |
| Subject | Plots During Iterations |
| Message-ID | <ipsohh$8a2$1@smc.vnet.net> |
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
[toc] | [next] | [standalone]
| From | "M.Roellig" <markus.roellig@googlemail.com> |
|---|---|
| Date | 2011-05-05 09:24 +0000 |
| Message-ID | <iptqcq$ddn$1@smc.vnet.net> |
| In reply to | #2113 |
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
[toc] | [prev] | [next] | [standalone]
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Date | 2011-05-05 09:24 +0000 |
| Message-ID | <iptqd5$de1$1@smc.vnet.net> |
| In reply to | #2113 |
On 5/4/2011 4:46 PM, Kevin J. McCann 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 > Try Print[Plot[...]] ? --Nasser
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web