MathGroup Archive 1998

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

Search the Archive

Re: Slow Plot



Fred Lang wrote:

> For pedagogical reasons, I try to plot a Curve slowly.
> 
> I tried something like
> 
> In[1] = f[x_] := ( Pause[0.1] ; Sin[x] )
> 
> In[2] = Plot[ Evaluate[f[x]] , {x,-Pi, Pi } ] ;
> 
> But the plot is too fast, the Pause has no Effects on the Plot.

Evaluate[f[x]] evaluates to f[x] before Plot starts up; so you loose the
pause.

Plot[ f[x], {x,-Pi, Pi } ]

does what you want.

Alternatively something like

Pause[3];Plot[ Sin[x], {x,-Pi, Pi } ]


-- 
Allan Hayes
Training and Consulting
Leicester, UK
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk
voice: +44 (0)116 271 4198
fax: +44 (0)116 271 8642




  • Prev by Date: Defining a Function??
  • Next by Date: RE: Slow Plot
  • Prev by thread: Re: Slow Plot
  • Next by thread: RE: Slow Plot