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 in 6.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89341] Re: Why don't my plots appear? My 5.2 code no longer works correctly in 6.0
  • From: "David Park" <djmpark at comcast.net>
  • Date: Sat, 7 Jun 2008 02:50:29 -0400 (EDT)
  • References: <g2b4nj$nlf$1@smc.vnet.net>

Version 6 no longer generates plots as a 'side effect'. Greaphical output is 
now regular output just as everything else. So you now need to remove the 
semicolon to obtain the output. Mathematica was trying to give you a hint of 
that by coloring the semicolon red.

So how do you generate a plot as a side effect? Again, your question 
contains the answer. Just put the plot statement inside of a Print 
statement.

-- 
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/


"Charlie Brummitt" <cbrummitt at wisc.edu> wrote in message 
news:g2b4nj$nlf$1 at smc.vnet.net...
> 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 
> at
> the end of "Plot[ ... ];"? Why is it red? In 5.2, placing a semicolon at 
> the
> 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, 
> like
> I was able to in 5.2.
>
> What's wrong? Can anyone please help?
>
> Thanks,
>
> Charlie
>
> 



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