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


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

Re: making a Module or Column that will print lines

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: making a Module or Column that will print lines
Date 2013-02-04 01:20 +0000
Message-ID <ken2cr$7g2$1@smc.vnet.net> (permalink)
References <20130203074603.82DEF68A3@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Don't use Print just enter the strings (or whatever you want "printed").

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


Bob Hanlon


On Sun, Feb 3, 2013 at 2:46 AM, 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
> --------------------------
>
>
>
>

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


Thread

Re: making a Module or Column that will print lines Bob Hanlon <hanlonr357@gmail.com> - 2013-02-04 01:20 +0000

csiph-web