GraphingWindow can be obtained by typing at the top of your brain:

from GraphingWindow import GraphingWindow

GraphingWindows are used for graphing data and visually displaying mathematical information to the user. You can open as many GraphingWindows as you want. Open one with something like:

graph = GraphingWindow(400,400,-5,10,-10,20,"MyGraph")

This will make a new window with a drawable area of 400x400, and set the coordinate frame of the window to run from x=-5 to x=10 and y=-10 to y=20. It will also title the window MyGraph. There are several methods one can now use to graph on the window: You can interact with the graph with the left mouse button (by dragging it around) to change the domain being graphed. You can also change the domain being graphed by typing into the boxes at the top of the window and clicking Resize. You can also interact with the domain being graphed programatically. graph.getDomain() will return a tuple in the format ((xmin, xmax), (ymin,ymax)) and graph.setDomain((xmin, xmax), (ymin,ymax)) will change the domain to the values it is called with. i.e. to blow up the bottom-left quadrant of the graph to the whole window, use code like:

xd, yd = graph.getDomain()
graph.setDomain((xd[0], xd[0]+(xd[1]-xd[0])/2.0), (yd[0], yd[0]+(yd[1]-yd[0])/2.0))


As you graph more and more functions, they get graphed on top of one another. To clear all graphed functions from the window and just get the bare axes again, type graph.clear()

If you wish to save the current contents of the graph and write it to a postscirpt file, use the call graph.postscript("graph.ps") where graph.ps is the file it will be written to.