You should look at IPython it is a frontend for the Python interpreter that runs the eventloop of Matplotlib in a separate thread.
http://ipython.scipy.org/moin/ http://matplotlib.sourceforge.net/ Matplotlib and Ipython might be in your Python distribution from Enthougt. A session with Ipython looks like this: ---------------------------------------------------- e...@lixie:~> ipython --pylab <lines deleted> Welcome to pylab, a matplotlib-based Python environment. For more information, type 'help(pylab)'. In [1]:plot([1,2,4,8]) Out[1]:[<matplotlib.lines.Line2D object at 0x170fd50>] In [2]:#A window with a graph has appeared. One can pan and zoom this graph. In [3]:1+2+3 Out[3]:6 In [4]: ----------------------------------------------------- In the Matplotlib newsgroup you would have to ask how to draw graphical primitives (lines). HTH, Eike. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor