MtxVecTee.DrawIt Method

Overload List

#SignatureDescription
1void DrawIt(TMtx a, String caption)Shows form with chart and grid series showing matrix values.
2void DrawIt(TVec x, TVec y, String caption, Boolean pixeldownsample)Shows form with tChart and FastLine series showing Y=Y(X).
3void DrawIt(TVec a, Int32 width, Int32 height)Shows form with tChart and FastLine series showing vector values.
4void DrawIt(TVec a, String caption, Boolean pixeldownsample)Automatically creates modal form with tChart and appropriate series style and then uses method to draw values to created series.
5void DrawIt(TVec[] a, String[] seriescaptions, String caption, Boolean pixeldownsample)Shows form with chart and array of fastline series - one for each vector in A array of vectors.

Overload 1: void DrawIt(TMtx a, String caption)

Shows form with chart and grid series showing matrix values.

#NameDescription
1aSource matrix.
2captionForm text.

Result: stored in self (calling object)

Examples
Matrix m1 = new Matrix(0,0,false);

m1.LoadFromFile("PCA_data.mtx");
MtxVecTee.DrawIt(m1,"Correlation matrix");

Overload 2: void DrawIt(TVec x, TVec y, String caption, Boolean pixeldownsample)

Shows form with tChart and FastLine series showing Y=Y(X).

#NameDescription
1xSource x values vector.
2ySource y values vector.
3captionForm text.
4pixeldownsampleIf true, DrawIt will automatically use PixelDownSample method for series to reduce the number of points displayed (much faster display).

Result: stored in self (calling object)

Examples
using Dew.Math;
using Dew.Math.Tee;

Vector x = new Vector(0);
Vector y = new Vector(0);
x.LoadFromFile("xdata.vec");
y.LoadFromFile("xdata.vec");
MtxVecTee.DrawIt(x,y,"y=y(x)",false);

Overload 3: void DrawIt(TVec a, Int32 width, Int32 height)

Shows form with tChart and FastLine series showing vector values.

#NameDescription
1aSource vector.
2widthForm width.
3heightForm height.

Result: stored in self (calling object)

Remarks:

The width and height parameters control form width and height respectively.

Examples
using Dew.Math;
using Dew.Math.Tee;

Vector v = new Vector(0);
v.LoadFromFile("c:\\data\\testvector.vec");
MtxVecTee.DrawIt(v,400,300);

Overload 4: void DrawIt(TVec a, String caption, Boolean pixeldownsample)

Automatically creates modal form with tChart and appropriate series style and then uses method to draw values to created series.

#NameDescription
1aSource vector.
2captionForm text.
3pixeldownsampleIf true, then DrawIt will automatically use PixelDownSample method to reduce the number of points displayed for all series (much faster display)

Result: stored in self (calling object)

Examples
using Dew.Math;
using Dew.Math.Tee;

Vector v = new Vector(0);
v.LoadFromFile("c:\\data\\testvector.vec");
MtxVecTee.DrawIt(v,"Showing vector values",false);

Overload 5: void DrawIt(TVec[] a, String[] seriescaptions, String caption, Boolean pixeldownsample)

Shows form with chart and array of fastline series - one for each vector in A array of vectors.

#NameDescription
1aAn array of source vectors.
2seriescaptionsAn array describing each series(vector) title.
3captionForm text.
4pixeldownsampleIf true, DrawIt will automatically use PixelDownSample method for series to reduce the number of points displayed (much faster display).

Result: stored in self (calling object)

Examples
Vector x1 = new Vector(0);
Vector x2 = new Vector(0);
Vector x3 = new Vector(0);

x1.LoadFromFile("x1_data.vec");
x2.LoadFromFile("x2_data.vec");
x3.LoadFromFile("x3_data.vec");
MtxVecTee.DrawIt(new TVec[] {x1,x2,x3},new string[] {"1st","2nd","3rd"}, "Multiple values",false);