MathGroup Archive 2007

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

Search the Archive

Re: Plot[], Show[] and ; in Version 6

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76485] Re: [mg76433] Plot[], Show[] and ; in Version 6
  • From: "Lev Bishop" <lev.bishop+mathgroup at gmail.com>
  • Date: Wed, 23 May 2007 05:13:48 -0400 (EDT)
  • References: <200705220648.CAA19859@smc.vnet.net>

On 5/22/07, yasdfer at yahoo.com <yasdfer at yahoo.com> wrote:
> Since version 6.0 suppresses Plot/Show outputs with ; (semicolon), how
> do you plot and then do additional numerical (or graphical) outputs? I
> have a lot of existing notebooks that follow such pattern and I am
> hoping that there are some quick fixes.
>
> For example, the following would work in older version and not in 6:
>
> Block[{x=1,y=2},
> Plot[x,{x,0,1}];
> Print[Sqrt[y]];
> Plot[x^2,{x,0,1}]
> ]

Block[{x = 1, y = 2},
 Print@Plot[x, {x, 0, 1}];
 Print[Sqrt[y]];
 Plot[x^2, {x, 0, 1}]]


  • Prev by Date: Re: Plot[], Show[] and ; in Version 6
  • Next by Date: Re: Evaluation Question
  • Previous by thread: Plot[], Show[] and ; in Version 6
  • Next by thread: Re: Plot[], Show[] and ; in Version 6