Re: Progressive Plotting
- To: mathgroup at smc.vnet.net
- Subject: [mg9141] Re: Progressive Plotting
- From: Paul Abbott <paul at physics.uwa.edu.au>
- Date: Tue, 14 Oct 1997 10:01:56 -0400
- Organization: University of Western Australia
- Sender: owner-wri-mathgroup at wolfram.com
Peter Jay Salzman wrote: > i'm writing a program that will plot things as it progresses. > i would like to keep the current plot, and then when the new data is > ready, replace it with a plot of the new data. (ie--i don't want a > million graphics windows if i do a million calculations). can this be > done? Yes. MIYAJI Chikara <miyaji at taiiku.tsukuba.ac.jp> wrote something called QDWindow that does this using MathLink (but this package presently only runs on Macintoshes because it uses QuickDraw functionality): QDWindow, a realtime Graphics Tool for Cellular Automata. Outline: QDWindow is a sample program in the author's book. It enable to draw two dimensional cellular automata state in realtime. For example, life game's evolution can be seen in realtime. Functions: (1)OpenWindow: open window for realtime graphics. (2)CloseWindow: close an window. (3)SetPort: set a graphics destination to an window. (4)GetPort: get a current port. (5)MoveTo: move current window's pen to argument position. (6)LineTo: draw a line from current position to arguments position. (7)CopyBits: draw a bitmap acording to the value of argument table. (8)CopyPix: draw a pixel on window adording to RasterArray argument. The book Network Programming with Mathematica which documents a whole suite of MathLink functions by MIYAJI Chikara is to be published by Cambridge University Press but I do not know when it will be published. Cheers, Paul ____________________________________________________________________ Paul Abbott Phone: +61-8-9380-2734 Department of Physics Fax: +61-8-9380-1014 The University of Western Australia Nedlands WA 6907 mailto:paul at physics.uwa.edu.au AUSTRALIA http://www.pd.uwa.edu.au/~paul God IS a weakly left-handed dice player ____________________________________________________________________