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: How to show the plot in Module[{}, ]?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77388] Re: How to show the plot in Module[{}, ]?
  • From: Adriano Pascoletti <adriano.pascoletti at gmail.com>
  • Date: Thu, 7 Jun 2007 04:07:44 -0400 (EDT)
  • References: <f469fl$3u9$1@smc.vnet.net>

On 6 Giu, 14:31, foxvexon <yulin... at gmail.com> wrote:
> Hi, all,
>   I am moving to V6 from V5.2.
>   Everything feels good except that I can't show the plots in { }
> regions.
>   For example, by the following lines:
>
>   a[] := Module[{},
>   Print["I'll be good!"];
>   Plot[Cos[x], {x, 0, 10}];
>   Print["Fine,me too"];
>   ]
>
>   in V5.2, the outputs would be:
>
>   I'll be good
>   cosine plot
>   Fine, me too
>
>   but in V6, only
>
>   I'll be good
>   Fine, me too
>
>   even when I eliminate the semicolon after plot (which, you know,
> will causes disorder arrangement of lines).
>
>   Please help, thanks a lot in advance!

I solved a similar problem with Column
a[] := Module[{}, Column[{"I'll be good!", Plot[Cos[x], {x, 0, 10}],
         "Fine,me too"}]]

Adriano Pascoletti



  • Prev by Date: Re: Alt+Click has no effect when I use LocatorAutoCreate->True
  • Next by Date: Re: Version 6.0 Problems
  • Previous by thread: Re: How to show the plot in Module[{}, ]?
  • Next by thread: Re: apparently I don't know how to use Map (or Apply or