Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Plot[], Showand ; in Version 6

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76550] Re: Plot[], Showand ; in Version 6
  • From: Bill Rowe <readnewsciv at sbcglobal.net>
  • Date: Wed, 23 May 2007 05:47:31 -0400 (EDT)

On 5/22/07 at 2:48 AM, 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}]
>]

The following produces something reasonably close in 6

Block[{x = 1, y = 2}, Print[Sqrt[y]]; GraphicsGrid@Transpose@{{
     Plot[x^2, {x, 0, 1}], Plot[x, {x, 0, 1}]}}]
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Plot[], Show[] and ; in Version 6
  • Next by Date: Re: PlotVectorField with continuous lines
  • Previous by thread: Re: a small tid bit of Mathematica history for versions 4.1 up to version 6.0
  • Next by thread: missing from 6.0 documentation