Vasily I. Volchenko wrote:
Thanks. This is a good start.
Luiz
-----Original Message-----
From: Vasily I. Volchenko <[EMAIL PROTECTED]>
To: Luiz Americo Pereira Camara <[EMAIL PROTECTED]>
Date: Tue, 20 Nov 2007 17:44:51 +0300
Subject: Re[2]: [lazarus] Plots
Hi,
Thanks, i got the packages and successfully compiled. But i did not find
example of how to use it.
Can you post some small examples?
Luiz
Presently it is quite difficult for me (as I am at work). As far as I remember,
there are the following rules:
1. TCustomPlot:
simple plotting control. 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.
2. TFunctionPlot:
Almost the same (it can work the such way), but a new event (OnFunctionCall) is
defined. You should write a function body in it, like
begin
y=sin(x);
end;
Nothing more. Besides, AutoSizeX means nothing while plotting functions, you
should set MinX and MaxX.
Property DividingTabs means how many points will be used to tabulate (and then
draw) the function.
Wiki and examples will be tomorrow. Surface3d too.
Sorry for my terrible English. This is because all mathematical courses (from
the beginning school's mathemathics to mathematical modelling in post graduate)
were in Russian, and technical English doesn't include mathematics.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives