Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Why don't my plots appear? My 5.2 code no longer works correctly

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89339] Re: Why don't my plots appear? My 5.2 code no longer works correctly
  • From: Szabolcs <szhorvat at gmail.com>
  • Date: Sat, 7 Jun 2008 02:50:07 -0400 (EDT)
  • References: <g2b4nj$nlf$1@smc.vnet.net>

On Jun 6, 1:49 pm, "Charlie Brummitt" <cbrumm... at wisc.edu> wrote:
> Hello,
> I am running into difficulties with Plot. Some code of mine that worked in=

> 5.2 no longer works correctly in 6.0.2.0. Specifically, no plots appear
> whenever Plot (or Plot3D or DensityPlot or ListPlot) is called within a
> function that I have defined.
>
> Here is a closely related question: What does the red semicolon ";" mean a=
t
> the end of "Plot[ ... ];"? Why is it red? In 5.2, placing a semicolon at t=
he
> end of Plot[] allowed me to output a plot in the middle of a computation,
> without halting the computation. Now I can no longer seem to output a plot=

> in the middle of a long computation. (I only see the output of Print[]
> commands.) I must be able to see these plots during long computations, lik=
e
> I was able to in 5.2.
>
> What's wrong? Can anyone please help?
>
> Thanks,
>
> Charlie

This has already been explained many many times.  Search the MathGroup
archives.

In v6, graphics do not appear as a side effect of a command, but they
are the actual value returned by the function.  If you suppress the
return value with a semicolon, nothing will be shown.  In v6, graphics
are like any other expression, they are just formatted differently.


  • Prev by Date: Re: Tag Times Protected with Show[]
  • Next by Date: Re: Why don't my plots appear? My 5.2 code no longer works correctly
  • Previous by thread: Re: Why don't my plots appear? My 5.2 code no longer works correctly
  • Next by thread: Re: Why don't my plots appear? My 5.2 code no longer works correctly