TCustomPlot

From Free Pascal wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

About

TCustomPlot is a custom plotting component. It allows you to plot a series of points connected with line.

Usage

You need to make a set of points, and them will be connected with line. Points should be set via Points property, which is a decendent of TStrings. So, in program you need to set points[i].x and points.y. In ObjectInspector you may edit it as a stringlist, each line is a point in format x:y, where x and y are float falues. XMin,XMax,YMin,YMax - float properties for setting plot borders. Alternatively you may set AutoSizeX and/or AutoSizeY to true, so all points must be shown. HasMarks means whether axes have a marks (float numbers). NMarksX and NMarksY shows how many such marks will be at the correspondend axis. XSpacer and YSpacer means how many space (in pixels) are left for float marks. XMarkDigits, YMarkDigits,XMarkDecimals, YMarkDecimals are about formatting the values.

License

modified LGPL (same as the FPC RTL and the Lazarus LCL). You can contact the author if the modified LGPL doesn't work with your project licensing.

Author

Presently Vasily I.Volchenko