Re: Slow Plot
- To: mathgroup@smc.vnet.net
- Subject: [mg11388] Re: Slow Plot
- From: Allan Hayes <hay@haystack.demon.co.uk>
- Date: Sun, 8 Mar 1998 20:13:10 -0500
- References: <6dqopn$rgl@smc.vnet.net>
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