MathGroup Archive 2000

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

Search the Archive

Re: Animate multiple listplots


In article <8q21d7$hmh at smc.vnet.net>,
  "Andrew R. Harris" <quadratic at earthlink.net> wrote:
>
> I have a list of 5000 pairs of coordinates.  I am looking for a way to
> read the list in increments of 50 sets of coordinates. plot the lists
> and then animate the plots .
>
> Andrew Harris
>
>

Andrew,

Assuming the data is in the form data={{x1,y1},{x2,y2}, . . .}, then
the following partitions the data into consecutive lists of 50 and
produces a ListPlot of each partition. The PlotRange is set explicitly
(you need to choose the {low,hi}) so the range for all the plots is the
same. In a Windows front end, you can then select the cell containing
all the plots and use "Cell, Animate Selected Graphics" (ctrl-Y) to
cause the animation.

ListPlot[#, PlotRange -> {low,hi}, PlotJoined -> True] & /@ Partition
[data, 50]

Regards,

David


Sent via Deja.com http://www.deja.com/
Before you buy.


  • Prev by Date: Re: 2D array to tab delimited file
  • Next by Date: Strange behaviour of FiniteFields?
  • Previous by thread: Re: Animate multiple listplots
  • Next by thread: Re: Animate multiple listplots