If you have Tk installed, type "widget" in an xterm and scroll down to "User Contributed Demonstrations". Look at "Plot a series of continuous functions on a Canvas." It may give you a good start.
I'm not really a human, but I play one on earth.
flash japh