MathGroup Archive 1998

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

Search the Archive

Re: Slow Plot



Fred Lang wrote:
> 
> Dear MathGroup users,
> I've a little problem:
> 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.
> 
> Any Idea?
> 
> Thank you
> 
> Fred Lang

Fred:

Here's one way to do it, using animation

n=8; (* choose n to balance memory usage vs. quality *)
Map[Plot[Sin[x],{x,0,#},PlotRange->{{-Pi,Pi},{-1,1}}]&,{-Pi,Pi,2Pi/n}]

In your attempt, the pause was only effecting the building of the final
graph, not its display

Ken Levasseur
http://www.wolfram.com/training/companies/levasseur.html



  • References:
  • Prev by Date: making MatrixForm[] default?
  • Next by Date: Mathematica Graphics Book Review...
  • Prev by thread: Slow Plot
  • Next by thread: Re: Slow Plot