Format of the Graph Configuration File (*.fig)
If you have graph configuration file (*.fig) created from a program, you can automatically show graphs for outputs of numerical analysises or measured values retrieved from a datalogger.
The following list is the format for ver.1.0. This version is the simplest one, which does not contain information such as function plotting or array. However, this would be satisfactory for most cases and is compatible for latest version.
Also, two module/unit files, which make the creation and showing of the graph easier, are provided in the installed folder. Those functionality are almost the same.
FigFileMaker.bas*: Standard module for Visual Basic 6.0
FigFileMaker.pas: Delphi unit file containing TXYGrapher class.
*Since parameters are global variable, prefix "G" are attached to frequently-used variable name such as Height, or Max.
[List of the Property Names]
Spacings between parameters are free as long as they are > 1. On the other hand, number of blank lines are strict. Blue colored parameter are integer (no decimal). Also, words after "//" are comments.
-------------------------------------------------------
Information file for XYGrapher ver.1.0 //"ver.1.0" must be exactly stated.
NumDataSeries
// Repeat for each data series from here
DataSeries[1]
Xb[1] Xt[1] Yl[1] Yr[1] ReadStart[1] ReadEnd[1]
LineStyle[1] LineWidth[1] LineColor[1] MarkStyle[1] MarkSize[1] MarkColor[1]
Xmult[1] Xoffset[1] Ymult[1] Yoffset[1] // to here
[Frame] // mere comment line
Height Width Lmargin Tmargin FLineWidth NumFontSize
NumFontName
[X-axis] // bottom axis
Max[1] Min[1] Division[1] Minordivision[1] logarithm[1] NumeralsXshift[1] NumeralsYshift[1] GridLine[1]
[U-axis] // top axis
Max[2] Min[2] Division[2] Minordivision[2] logarithm[2] NumeralsXshift[2] NumeralsYshift[2] GridLine[2]
[Y-axis] // left axis
Max[3] Min[3] Division[3] Minordivision[3] logarithm[3] NumeralsXshift[3] NumeralsYshift[3] GridLine[3]
[R-axis] // right axis
Max[4] Min[4] Division[4] Minordivision[4] logarithm[4] NumeralsXshift[4] NumeralsYshift[4] GridLine[4]
[Titles & legends]
NumLegend
Legend[1] // title of the graph
LegendLspacing[1] LegendXshift[1] LegendYshift[1]
Legend[2] // title of the bottom axis
LegendLspacing[2] LegendXshift[2] LegendYshift[2]
Legend[3] // title of the top axis
LegendLspacing[3] LegendXshift[3] LegendYshift[3]
Legend[4] // title of the left axis
LegendLspacing[4] LegendXshift[4] LegendYshift[4]
Legend[5] // title of the right axis
LegendLspacing[5] LegendXshift[5] LegendYshift[5]
Legend[6] // Add as many as legends
LegendLspacing[6] LegendXshift[6] LegendYshift[6]