{Defined in UNIT SGraph.}


The Science Graph, SGraph, is the basic two dimensional graphing component in the science tool kit. Click on the SGraph icon on the Delphi menu bar and draw a graph on a form. Set the default values for the horizontal and vertical scale using the object inspector. In order for the SGraph to display data you must register the data with the graph. Registering data is different from just drawing a point on the screen since the SGraph remembers the data. You can use an SGraph as a storage object for your data. You can retrieve your data later on for further processing.

Use SGraph to see what type of data you program is generating while the program is running. Right mouse click on the SGraph to bring up an Inspector. This inspector allows you to view the data contained in the graph in tabular form, prepare the graph for printing and change scale. A unique feature of the inspector is that it will allow you clone the graph, i.e., make a copy in a separate window. Cloning a graph is useful since it copies the data to a new graph so your program can no longer change it. Cloning graphs after a program had been run with different parameters allows you to compare graphs.

You should browse the Pascal interface code for the SGraph Class. If you see a method, i.e., function or procedure, in the that looks like it might be useful, you should look it up in the Science Tools Help File to locate additional information such as sample code that uses the methods.