MathGroup Archive 2007

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

Search the Archive

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


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}]
> ]
> 
> Thanks,
> 
> -Victor

Hi Victor,

Aligning graphics in a vertical fashion can be achieved in version 6 
with GraphicsColunn [1] (and similarly with GraphicsRow for a horizontal 
layout).

Block[{x = 1, y = 2}, GraphicsColumn[{Plot[x, {x, 0, 1}], Sqrt[y],
        Plot[x^2, {x, 0, 1}]}]]

Cheers,
Jean-Marc

[1] http://reference.wolfram.com/mathematica/ref/GraphicsColumn.html


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