||Reinforcement Learning and
(2D and 3D graphing)
The ambition of this
page is to very briefly describe the Quickgraph graphing routines and
its various implementations such that readers can quickly determine
whether or not it is likely to meet their needs. External
documentation is not here but is pointed to from here.
The quickgraph routines allow users to quickly and easily build
2-dimensional graphs based on lists of numbers. The graphs can have
multiple lines (which will be different colors for differentiation),
have gridlines, and have detailed axis tickmarks. Histograms are also
supported. Once a graph is drawn, the user can easily highlight
separate data lines.
Users can also easily make a 3-dimensional graph surface from a
2-dimensional array of data.
The quickgraph routines are based on the graphics package G.
Quickgraph is currently available only for Macintosh
Common Lisp and for Python (multiple platforms, based on tk and
former is very stable whereas the latter is under development -- user
- Quickgraph for Python 1.0 beta
- Quickgraph for Macintosh Common Lisp 2.0
Python Installation Instructions for Quickgraph
- You must have the following installed on your machine to use g:
- Python (version 2.3)
- Tkinter (the Python interface for Tk)
- In addition, you must be
running in a windowing
- For help in using Python, especially with Tkinter, see here.
- Questions? More
- The last upload of quickgraph was January 25, 2005. For
information on previous versions, see here.
- Download the quickgraph
tar file here.
- It unzips into a folder called Quickgraph. Place this folder
in your Python site packages directory or wherever you want to run
- Quickgraph can also be acquired by installing the Reinforcement
- Note: on the mac, you must use pythonw,
not python to be able to use these functions. The Python IDE that comes
with the Mac cannot be used to run these, but IDLE can be modified to
work with them (see here).
- Move to the directory you put the Quickgraph folder in (not
necessary if it is in the Python site packages folder)
- Start up Python and do one of the following:
from Quickgraph import *
Then you can access the 2d graphing routines with module name
in front - e.g.
graph.graph(...), and the 3d ones with
graph3d in front - e.g.
from Quickgraph.graph import *
Then you can access the graph routines without a module name in front.
The 3d graphing routines are not available with this import.
from Quickgraph.graph3d import *
Then you can access the graph3d routines without a module name in
The 2d graphing routines are not available with this import.
- Use the command
to make your windows
>>>from Quickgraph.graph import *
>>>graph([[1, 2, 3, 4, 5], [1, 4, 9,
You should see a window with two graph lines
in it in the upper left hand corner of your screen.
It may be hidden behind other windows.
Questions? More information is
Lisp Installation Instructions for Quickgraph
Graph.lisp is built on the G graphics
language which is in turn built on Quickdraw.
To install G, you need to obtain the file g.lisp
will also need the quickdraw interface file
that came with MCL). To install Graph.lisp you will need to obtain the
Once you have the files, here is the normal
installation procedure (put this in your init.lisp file):
Of course if you have compiled these files you will want to leave off
.lisp" on these files names.