visualization tool

This is sort of not a matplotlib specific question, but it seems like
people on this list might be able to point me in some good directions.
I need to give a lecture on feedback control systems. I would like
to talk about stabalizing unstable systems and use an inverted
pendulum for an example. I know that Matlab had a demo like this that
included a fairly neat 2D visualization of a cart moving back and
forth with an inverted pendulum on it. I would need to run a
simulation in the background that outputs the cart position and the
pendulum angle and then I would want to create an animation of the
cart and pendulum moving around.

Can anyone recommend a python package for doing this kind of animation?

Thanks,

Ryan

Hi Ryan,

This is sort of not a matplotlib specific question, but it seems like
people on this list might be able to point me in some good directions.
I need to give a lecture on feedback control systems. I would like
to talk about stabalizing unstable systems and use an inverted
pendulum for an example. I know that Matlab had a demo like this that
included a fairly neat 2D visualization of a cart moving back and
forth with an inverted pendulum on it. I would need to run a
simulation in the background that outputs the cart position and the
pendulum angle and then I would want to create an animation of the
cart and pendulum moving around.

Can anyone recommend a python package for doing this kind of animation?

First, you might try to use techniques described at
  http://new.scipy.org/Wiki/Cookbook/Matplotlib/Animations
If you have a reasonably fast machine it might already work out
fine enough.
Other options are pygame (never used it myself)
and Vpython (www.vpython.org) which can do some very nice things
with remarkably little code.

Best, Arnd

···

On Sat, 25 Feb 2006, Ryan Krauss wrote:

If you want to use wxPython, then wx.lib.floatcanvas would make this pretty easy.

-Chris

···

On Sat, 25 Feb 2006, Ryan Krauss wrote:

Can anyone recommend a python package for doing this kind of animation?

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...