MtxVecTee.DrawIt Method

Overload List

#SignatureDescription
1procedure DrawIt(A: TMtx; Caption: String = ''); overload;Shows form with chart and grid series showing matrix values.
2procedure DrawIt(A: TVec; Width, Height: Integer); overload;Shows form with chart and fastline series showing vector values.
3procedure DrawIt(X,Y: TVec; Caption: string = ''; PixelDownSample: boolean = false); overload;Shows form with chart and fastline series showing Y=Y(X).
4procedure DrawIt(A: TVec; Caption: string = ''; PixelDownSample: boolean = false); overload;Automatically creates modal form with TChart and Series.
5procedure 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.

#NameTypeDescription
1ATMtx
2CaptionString
Remarks:

The Caption parameter defines modal form caption.

Examples
#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.

#NameTypeDescription
1ATVec
2WidthInteger
3HeightInteger
Remarks:

Set the modal form ClientWidth and ClientHeight to Width and Height respectively.

Examples
#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;
See Also: MtxVecTee.DrawValues, MtxVecTee.DrawValues, MtxVecTee.DrawValues, MtxVecTee.DrawValues, MtxVecTee.DrawValues, MtxVecTee.DrawValues

Overload 3: procedure DrawIt(X,Y: TVec; Caption: string = ''; PixelDownSample: boolean = false); overload;

Shows form with chart and fastline series showing Y=Y(X).

#NameTypeDescription
1XTVec
2YTVec
3Captionstring
4PixelDownSampleboolean
Remarks:

If PixelDownSample parameter is True, then DrawIt will automatically use PixelDownSample method for series to reduce the number of points displayed (much faster display).

Examples
#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.

#NameTypeDescription
1ATVec
2Captionstring
3PixelDownSampleboolean
Remarks:

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).

Examples
#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;
See Also: MtxVecTee.DrawValues, MtxVecTee.DrawValues, MtxVecTee.DrawValues, MtxVecTee.DrawValues, MtxVecTee.DrawValues, MtxVecTee.DrawValues

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.

#NameTypeDescription
1Aarray of TVec
2SeriesCaptionsarray of string
3Captionstring
4PixelDownSampleboolean
Remarks:

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).

Examples
#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;