F. P.
F. P.

Reputation: 5086

Visual Python - Visualize graphs relating to a movement

I'm working with visual python on a project where I need to simulate a physical movement.

I'd like to present, in a different window than the one the actual, 3D sim is running, two graphs, both related to the movement:

All these vars are refreshed once per cycle (inside a while(true))

How can I accomplish this?

Thank you for your time!

Upvotes: 2

Views: 774

Answers (2)

F. P.
F. P.

Reputation: 5086

I've accomplished what I wanted with gdisplay. Reference: here

Upvotes: 1

Stephen Diehl
Stephen Diehl

Reputation: 8409

If you're looking to do plots of live data you can use matplotlib. Here's a live plotting example:

http://eli.thegreenplace.net/files/prog_code/wx_mpl_dynamic_graph.py.txt | Screenshot

It uses wx but matplotlib has bindings for QT or GTK. Alternatively you could use the rpy2 interface to hook into R which has an excellent plotting engine and may be slightly faster for large amounts of data.

Upvotes: 2

Related Questions