MathGroup Archive 2000

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

Search the Archive

Re: Animate multiple listplots

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25311] Re: Animate multiple listplots
  • From: dlkeith at my-deja.com
  • Date: Tue, 19 Sep 2000 03:45:38 -0400 (EDT)
  • References: <8q21d7$hmh@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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