[Tutor] newbie graphing question
alan.gauld at btinternet.com
Sun Jul 27 15:55:49 CEST 2008
"Peter Petto" <ppetto at apk.net> wrote
> I want to write programs that can draw figures with commands akin to
> point(x,y) to draw a point at coordinates (x,y), or segment
> (x1,y1,x2, y2) to draw a segment between points (x1, y1) and (x2,
Most GUI toolkits will have a Canvas widget or similar that allows
drawing at that level. Also the standard turtle module might be
helpful with supoport for turtle graphics. Finally there are Python
plotting libraries that can be used for graphing and charts
However the GUI toolkits have the big disadvantage that you have to
build a GUII and all the controls before you can use the Canvas. That
migt not be what you want. Or you may want to build a basic framework
that your students can start from.
> I'd appreciate recommendations as to the best facility or library to
> use to this end. I primarily use a Mac, but my students primarily
> use Windows.
Standard Tkinter or wxPython both work on the Mac.
It depends on whether you want to teach graphics programming or
just graphics for data presentation. If the latter you are probably
off with a standard spreadsheet like Excel.
Author of the Learn to Program web site
More information about the Tutor