Re: Plot[], Show[] and ; in Version 6
- To: mathgroup at smc.vnet.net
- Subject: [mg76470] Re: Plot[], Show[] and ; in Version 6
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 23 May 2007 05:06:02 -0400 (EDT)
- Organization: Uni Leipzig
- References: <f2u4am$jnp$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi, but Block[{x=1,y=2}, Print[Plot[x,{x,0,1}]]; Print[Sqrt[y]]; Plot[x2,{x,0,1}] ] will work. Regards Jens 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 > >