You are here: Symbol Reference > MtxVecTee Namespace > Functions > MtxVecTee.DrawValues Function
MtxVec VCL
ContentsIndex
PreviousUpNext
MtxVecTee.DrawValues Function

Draws vector or matrix values by using any valid already created chart series.

Pascal
procedure DrawValues(Y: TVec; Series: TChartSeries; XOffset: double = 0; XStep: double = 1.0; PixelDownSample: boolean = false); overload;

Plots a Y=Y(X) using Series. X values are calculated using the following formula 

 

X[i] = XOffSet + XStep*i

 

 

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

Plot Y=Y(X) with starting point for x values equal to 10.5 and x step equal to 0.05. 

You have to put a chart on the form and add it one series which should be named "Series1". 

 

uses MtxExpr, Math387, MtxVec, MtxVecEdit; procedure TForm1.FormCreate(Sender: TObject); var Y: Vector; // Series1: TMtxFastLineSeries; begin Y := Sin(Ramp(100,0,2*PI*5/100)); DrawValues(Y, Series1, 10.5, 0.05); end;

 

#include "MtxExpr.hpp" #include "MtxVecTee.hpp" __fastcall TForm1::TForm1(TComponent* Owner): TForm(Owner) { sVector Y; // TMtxFastLineSeries Series1; Y = Sin(Ramp(100,0,2*PI*5/100)); DrawValues(Y, Series1, 10.5, 0.05); }
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!