MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: making a Module or Column that will print lines interspersed

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129693] Re: making a Module or Column that will print lines interspersed
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Mon, 4 Feb 2013 22:23:22 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <10010598.23479.1359878268869.JavaMail.root@m06> <ken2cb$7fn$1@smc.vnet.net>

On 04/02/2013 01:20, djmpark wrote:
> Print the plots, just as everything else was printed.
>
>
> David Park
> djmpark at comcast.net
> http://home.comcast.net/~djmpark/index.html
>
>
>
> From: Bruce Shore [mailto:bwshore at 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 at 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




  • Prev by Date: Re: Mathematica and Lisp
  • Next by Date: Passing arbitrary arrays to external programs
  • Previous by thread: Re: making a Module or Column that will print lines interspersed
  • Next by thread: Radical conjugates