Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure DrawIt(A: TMtx; Caption: String = ''); overload; | Shows form with chart and grid series showing matrix values. |
| 2 | procedure DrawIt(A: TVec; Width, Height: Integer); overload; | Shows form with chart and fastline series showing vector values. |
| 3 | procedure DrawIt(X,Y: TVec; Caption: string = ''; PixelDownSample: boolean = false); overload; | Shows form with chart and fastline series showing Y=Y(X). |
| 4 | procedure DrawIt(A: TVec; Caption: string = ''; PixelDownSample: boolean = false); overload; | Automatically creates modal form with TChart and Series. |
| 5 | procedure DrawIt(const A: array of TVec; const SeriesCaptions: array of string; Caption: string = ''; PixelDownSample: boolean = false); overload; | Shows form with chart and array of fastline series - one for each vector in A array of vectors. |
Overload 1: procedure DrawIt(A: TMtx; Caption: String = ''); overload;
Shows form with chart and grid series showing matrix values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | TMtx | |
| 2 | Caption | String |
The Caption parameter defines modal form caption.
#include "MtxExpr.hpp"
#include "MtxVecTee.hpp"
...
sMatrix A;
A.Size(20,20)
A()->Ramp();
DrawIt(A,"Showing matrix values");
..
Uses ...MtxExpr, MtxVecTee;
var A: Matrix;
begin
DrawIt(A,'Showing matrix values');
end;
Overload 2: procedure DrawIt(A: TVec; Width, Height: Integer); overload;
Shows form with chart and fastline series showing vector values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | TVec | |
| 2 | Width | Integer | |
| 3 | Height | Integer |
Set the modal form ClientWidth and ClientHeight to Width and Height respectively.
#include "MtxExpr.hpp"
#include "MtxVecTee.hpp"
...
sVector A;
A = Sin(Ramp(300,2*PI*5/300));
DrawIt(A,400,300);
..
Uses ...MtxExpr, MtxVecTee;
var A: Vector;
begin
DrawIt(A,400,300);
end;
Overload 3: procedure DrawIt(X,Y: TVec; Caption: string = ''; PixelDownSample: boolean = false); overload;
Shows form with chart and fastline series showing Y=Y(X).
If PixelDownSample parameter is True, then DrawIt will automatically use PixelDownSample method for series to reduce the number of points displayed (much faster display).
#include "MtxExpr.hpp"
#include "MtxVecTee.hpp"
...
sVector x,y;
x.LoadFromFile("d:\\temp\\x_data.Vec");
y.LoadFromFile("d:\\temp\\y_data.Vec");
DrawIt(x, y, "Showing y=y(x)", True);
..
Uses ...MtxExpr, MtxVecTee;
var x,y: Vector;
begin
x.LoadFromFile('d:\temp\x_data.Vec');
y.LoadFromFile('d:\temp\y_data.Vec');
DrawIt(x, y, "Showing y=y(x)", True);
end;
Overload 4: procedure DrawIt(A: TVec; Caption: string = ''; PixelDownSample: boolean = false); overload;
Automatically creates modal form with TChart and Series.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | TVec | |
| 2 | Caption | string | |
| 3 | PixelDownSample | boolean |
Use DrawValues method to draw values to automatically created series. Shows form with chart and fastline series showing vector values. The Caption parameter defines modal form caption. If parameter PixelDownSample is True, then DrawIt will automatically use PixelDownSample method to reduce the number of points displayed for all series (much faster display).
#include "MtxExpr.hpp"
#include "MtxVecTee.hpp"
...
sVector A;
A = Sin(Ramp(300,2*PI*5/300));
DrawIt(A,"Showing vector values",false);
..
Uses ...MtxExpr, MtxVecTee;
...
var A: Vector;
begin
A := Sin(Ramp(300,2*PI*5/300));
DrawIt(A,'Showing vector values');
end;
Overload 5: procedure DrawIt(const A: array of TVec; const SeriesCaptions: array of string; Caption: string = ''; PixelDownSample: boolean = false); overload;
Shows form with chart and array of fastline series - one for each vector in A array of vectors.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | A | array of TVec | |
| 2 | SeriesCaptions | array of string | |
| 3 | Caption | string | |
| 4 | PixelDownSample | boolean |
Sets series Title(s) to strings in SeriesCaptions. Set form caption to Caption string. If PixelDownSample parameter is True, then DrawIt will automatically use PixelDownSample method for all series to reduce the number of points displayed (much faster display).
#include "MtxExpr.hpp"
#include "MtxVecTee.hpp"
...
sVector y1,y2,y3;
// ...
y1.LoadFromFile("d:\\temp\\data1.Vec");
y2.LoadFromFile("d:\\temp\\data2.Vec");
y3.LoadFromFile("d:\\temp\\data3.Vec");
DrawIt(OPENARRAY(TVec*,(y1,y2,y3)), OPENARRAY(AnsiString,("y1 data", "y2 data", "y3 data")),"Showing data...",false);
..
Uses ..., MtxVecTee;
var y1,y2,y3: TVec;
begin
// ...
y1.LoadFromFile('d:\temp\data1.Vec');
y2.LoadFromFile('d:\temp\data2.Vec');
y3.LoadFromFile('d:\temp\data3.Vec');
DrawIt([y1,y2,y3],['y1 data', 'y2 data', 'y3 data'], "Showing data...",false);
end;