SGraph ver 2.1

Introduction
License
Disclaimer
Files
Install components
Replace old version
How to start
History
Contact me

Introduction

This is a set of 32 bit Delphi components and classes for 2D plot. It is relatively simple. It is more gauge then presentation element. The main features are:

The main component is Tsp_XYPlot. It holds four Tsp_Axis and controls Data Series. The Tsp_XYPlot and Tsp_Axis provide base plot functionality like auto scale, zoom and pan and so on. The Data Series must be derived from Tsp_DataSeries and implements data storage and how data are painted on the plot canvas. An example of these components is Tsp_XYLine and Tsp_SpectrLines.

License

The component files are freeware. You may copy those files as long as you COPY ALL OF THEM. You cannot distribute source of main units in modified form, except unit for data series. Copyright © 1998-1999, Sergei P. Pod'yachev.

Disclaimer

This software and the accompanying files are provided "As Is" and without any warranties as to performance of merchantability or any other warranties whether expressed or implied. The Author cannot and does not guarantee that any functions contained in the Software will be error free. The author is not liable for any damages resulting from the use and misuse of the component.

Files

sgr_misc.pas Auxiliary unit, used by sgr_def.dcu.
sgr_scale.pas Auxiliary unit, there is implementation of plot axis ancestor.
sgr_def.pas    Main unit. There are Tsp_xyPlot, Tsp_Axis and Tsp_DataSeries.
sgr_data.pas  Data series for Tsp_xyPlot derived from Tsp_DataSeries.
sgr_reg.pas    Registers components, used to install components.
sgr_reg.dcr    Components  images.
sgr.dpk           Can be used to install components (Delphi 3 and may be Delphi 4).
sgr.res            Need to compile sgr.dpk file.

Files with extensions *.htm and *.gif are Sgraph documentation

subdirectory help contains

sgr_def.hlp    Components help file
sgr_def.cnt    Help context file
sgr_def.kwf   Key words file for Delphi 2 help system.

subdirectory demo contains files of demo program.

sgraph_demo.gif (9308 bytes)

Install components

Extract files.

You have to use unzip program which preserve long file name or you must correct names manually if they was cut. Place to one directory next files: sgr_reg.pas, sgr_reg.dcr, sgr_data.pas, sgr_misc.pas, sgr_scale.pas, sgr_def.pas, sgr.dpk .

Delphi 2

Run Delphi. Click Install Component menu item. Do not forget that Delphi must find directory where you place component files (see Search Path). Press Add button and open sgr_reg.pas

Delphi 3

You can install components by Install Component item and sgr_reg.pas file. You also can use sgr.dpk packet file. In this case, click Open menu item and select sgr.dpk, then press Compile and when packet will be compiled press Install. If Delphi did know components directory, add it to Library Path on the Library Page of Environment Options.

Delphi 4

You can install components by Install Component item and add sgr_reg.pas file.

Install Help files

To install help file for Delphi 3

I also recommend to add to the Include section of the DELPHI3.CNT file line
:Include sgr_def.cnt
I do not check installation for Delphi 4, but I find that there are DELPHI4.CFG and DELPHI4.CNT files in \HELP directory are same as ones in Delphi 3.

After installation I recommend to compile demo program to check components. It also demonstrates some possibilities of SGraph.

Replace old version of Sgraph

If you already have old version SGraph you need update SGraph source files (*.pas and *.res) and recompile packet. Current version has same file name as previous version, so simply replace old files with new ones. Don't forget to replace sgr_def.hlp and sgr_def.cnt files. To recompile packet, load packet source where your old version was placed and press button Compile. Notice, demo program was modified, try to compile it to check that all was reinstalled properly.

How to start

Place the plot component and data series component on the form, set Plot property of data series to link it with plot. Play with visual properties, while select properties press <F1> key to see help file topic. There is also some notes of using SGraph.

Contact me

I'm glad about any kind of serious feedback!
If there are will be new components version,  they will be uploaded to Torry's Delphi Pages and  Delphi Super Page. There is also my WWW homepage  where also you can find latest versions of sgraph. If you have any suggestions especially about the bug mentioned - send me e-mail.

Aknowledgements

I wish to thank to Peter Kravtsov for comprehensive advise to add DataTime format of ticks label and Mauro J. Cavalcanti for the useful discussions and suggestions. A would like to thanks to all who wrote me good words about SGraph.

My best wishes.

Sergei. P. Pod'yachev.
e-mail :  pod@iae.nsk.su.
WWW : www.iae.nsk.su/~lab12/pod
Novosibirsk. Russia.