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[], Show[] and ; in Version 6

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76540] Re: [mg76433] Plot[], Show[] and ; in Version 6
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Wed, 23 May 2007 05:42:20 -0400 (EDT)
  • Reply-to: jfultz at wolfram.com

On Tue, 22 May 2007 02:48:42 -0400 (EDT), 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

Interestingly, you come very close to hitting on the solution in your=
 example.  
Emit the graph in the very same way you're emitting the Sqrt[y]...by using=
 the 
Print[] function.

Sincerely,
 
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.




  • Prev by Date: Re: Dialogs and inheritance
  • Next by Date: Re: Mathematica 6 review [first impressions]
  • Previous by thread: Re: Plot[], Show[] and ; in Version 6
  • Next by thread: Re: Plot[], Show[] and ; in Version 6