Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #13385
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | David Bailey <dave@removedbailey.co.uk> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: making a Module or Column that will print lines interspersed |
| Date | Tue, 5 Feb 2013 03:23:25 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <keptvd$dhf$1@smc.vnet.net> (permalink) |
| References | <10010598.23479.1359878268869.JavaMail.root@m06> <ken2cb$7fn$1@smc.vnet.net> |
| Lines | 72 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 05 Feb 2013 03:26:32 GMT |
| NNTP-Posting-Host | 2ff11756.news.twtelecom.net |
| X-Trace | DXC=ZZ1\9h]Toh42=0o6GZ=PX5C_A=>8kQj6=9BHNOcEA\@9cJQB\G[ch75EFiONJ7[Go6fC@_XbQMOd7 |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:13385 |
Show key headers only | View raw
On 04/02/2013 01:20, djmpark wrote:
> Print the plots, just as everything else was printed.
>
>
> David Park
> djmpark@comcast.net
> http://home.comcast.net/~djmpark/index.html
>
>
>
> From: Bruce Shore [mailto:bwshore@me.com]
>
> I run Mathematica 7. I have some legacy notebooks, from Mathematica 5, in
> which there were Modules such as
>
> macro :=Module[{j},
> Print["something"];
> plota;
> Print["something else"];
> plotb
> ];
>
> where plota and plotb were plots. Now with Mathematica 7 the semicolons
> prevent the plots from showing up. Show[plota]; has the same problem. The
> semicolons, which are needed in a Module, prevent the plotting. I have
> tried using a Column or a Graphics column,
>
> macro:=Column[{
> Print["something"],
> plota,
> Print["something else"],
> plotb
> }]
>
> and this does the printing and the plotting, but all the printing comes at
> the beginning and all the plots come after that. I really want the printing
> to come in between the plots, in the order that I show them. How can I do
> this?
>
>
>
> ---------------------------
> Bruce Shore
> bwshore@me.com
> (925) 455 0627
> --------------------------
>
>
>
>
>
To print a plot part way through a computation, do:
Print[plota];
Prior to version 6, the Plot functions effectively contained a Print,
so they appeared at once, but this was often quite inflexible and
inconsistent with the rest of Mathematica - hence the change.
To get a column, use:
Column[{
"something",
plota,
"something else",
plotb
}]
David Bailey
http://www.dbaileyconsultancy.co.uk
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: making a Module or Column that will print lines interspersed with plots "djmpark" <djmpark@comcast.net> - 2013-02-04 01:20 +0000 Re: making a Module or Column that will print lines interspersed David Bailey <dave@removedbailey.co.uk> - 2013-02-05 03:23 +0000
csiph-web