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


Groups > comp.soft-sys.math.mathematica > #13371 > unrolled thread

Re: making a Module or Column that will print lines

Started byJames Stein <mathgroup@stein.org>
First post2013-02-04 01:20 +0000
Last post2013-02-04 01:20 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: making a Module or Column that will print lines James Stein <mathgroup@stein.org> - 2013-02-04 01:20 +0000

#13371 — Re: making a Module or Column that will print lines

FromJames Stein <mathgroup@stein.org>
Date2013-02-04 01:20 +0000
SubjectRe: making a Module or Column that will print lines
Message-ID<ken2db$7gf$1@smc.vnet.net>
Try appending a Print (or perhaps a Show) to the plot lines, viz:

macro:=Module[{j},
  Print["something"];
  plota//Print;
  Print["something else"];
  plotb//Print;
];


On Sat, Feb 2, 2013 at 11:46 PM, Bruce Shore <bwshore@me.com> wrote:
> 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
> --------------------------
>
>
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web