100% found this document useful (2 votes)
6K views

Animation With Pygame

Slides from a presentation I gave at the December 2011 meeting of the Triangle Zope/Python Users' Group. I describe how I have used the powerful pygame module for data visualization in one of my ongoing projects. I cover considerations in properly representing data, and how to move from discrete time in the data to continuous time in the animation.

Uploaded by

Charlie Soeder
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
6K views

Animation With Pygame

Slides from a presentation I gave at the December 2011 meeting of the Triangle Zope/Python Users' Group. I describe how I have used the powerful pygame module for data visualization in one of my ongoing projects. I cover considerations in properly representing data, and how to move from discrete time in the data to continuous time in the animation.

Uploaded by

Charlie Soeder
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Animation with PyGame

Charlie Soeder - 15 Dec 2011

What is PyGame?

Python module does game-like things


Graphics, Sound, Event Bindings, etc... sudo apt-get install python-pygame Pygame.org Freenode IRC #pygame

Statistical Properties of Poker Tournaments

The Basics

Extract data Visualize the data!


Each player gets a circle to represent their holdings Each transaction gets a line from player to player

Smooooooooooth
Raw = [#blah blah blah#] From numpy import mean smooth = [] for i in range(0, len(raw)-5):
smooth += [mean(raw[i:i+5])]

Roll the film already!

Moar to come?
The Statistical Thermodynamics of Poker Tournaments v1.0 - Charlie Soeder. ArkFab Working Paper 1 June 2011 ArkFab.org TopologicOceans.wordpress.com

You might also like