2d graphics - what module to use?

sturlamolden sturlamolden at yahoo.no
Fri Jul 25 22:21:53 CEST 2008


On Jul 25, 8:13 am, Pierre Dagenais <pierre.dagen... at ncf.ca> wrote:
> What is the easiest way to draw to a window? I'd like to draw something
>   like sine waves from a mathematical equation.
> Newbie to python.

For mathematica equations, NumPy and matplotlib is probably the best
option. I prefer to embed matplotlib in wxPython. wxAgg is an
excellent backend.

For more general 2D graphics, there are several options, including:

- pygame (uses SDL)
- aggdraw module
- pycairo
- pyopengl
- wxPython's device context (ditto for other GUI libraries)








More information about the Python-list mailing list