2d graphics - what module to use?

Matthew Fitzgibbons elessar at nienna.org
Sat Jul 26 00:47:28 EDT 2008


sturlamolden wrote:
> 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)
> 
> 
> 
> 
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 

If you're using wx, there is also wx.lib.plot, which I found to be 
_much_ faster than matplotlib in my application, especially when resizing.

-Matt



More information about the Python-list mailing list