[comp.windows.x] X11 Graph Widget available for those who dare...

uhley@tybalt.caltech.edu (John Uhley) (02/14/89)

Part of the front end for GENESIS, the neural network simulator we are 
working on here at Caltech, required an X11 graph widget.  I have received 
permission from the professor funding this development to release a
standalone graph widget as long as "we don't have to support it and
it doesn't take up any of your time :-)".  

Given these provisions I've removed the widget from the rest of our package 
and hacked in a few routines to allow it to function independently.  Some
of the code is based on David Harrison's xgraph program which ran under
X10.  David is releasing Xgraph 11 in the near future, but tells me that
it is not a widget package, just a standalone X11 Xlib program.

As a warning, here's what's currently "wrong" (spelled hacked in quickly
and not at all nicely):

	- only runs on color displays (easy to fix if you have time)
	- widget can be resized too small to work, in which
	  case it just fills in a nice blue square instead of text & graph.
	- curves color cannot be user specified (ie: no curve#i=color)
	- range (xmin,ymin,xmax,ymax) need to be sent in a strings
	  instead of floats (which is somewhat annoying...)

What it does do is:

	- draws axis scaled to powers like David's xgraph 
	- draws tickmarks
	- draws titles
	- supports multiple curves in different colors 
	- displays a legend for each curve 
	- can dynamically add points to curves & supports multiple curves.
	- can dynamically rescale (ie: change graph display ranges)


We'd be more than happy to have anyone improve the graph widget 
(there is no doubt there's a lot of room for improvement).  We'd
be very happy if you'd send us any improvements so we can use them.
Our intent in releasing this somewhat hackey code is to put something
out there for people who need a graph widget to use until it is replaced
by something really wonderful...

If you would like a copy of the graph widget drop me a letter with your
email address.  If there's enough interest I'll post it to comp.sources.x.  

	Enjoy,

		John Uhley
		uhley@tybalt.caltech.edu
		uhley@csvax.caltech.edu

roussi@CSD360B.ERIM.ORG (Chris Roussi) (02/16/89)

I'm interested in your graph widget.  I'll watch comp.sources.x for it.

Chris Roussi
roussi@csd360b.erim.org
roussi@trace.erim.org