You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Tee Namespace > Classes > MtxVecTee Class > MtxVecTee Methods > DrawValues Method > MtxVecTee.DrawValues Method (TVec, Steema.TeeChart.Styles.Series, double, double, bool)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MtxVecTee.DrawValues Method (TVec, Steema.TeeChart.Styles.Series, double, double, bool)

Draws Y values by using any valid chart series.

Syntax
C#
Visual Basic
public static void DrawValues(TVec Y, Steema.TeeChart.Styles.Series series, double xoffset, double xstep, bool pixeldownsample);
Parameters 
Description 
TVec Y 
Values to be plotted, including INFs and NANs. 
Steema.TeeChart.Styles.Series series 
Series to be used for plotting. 
double xoffset 
Starting x value for first y(x) value. 
double xstep 
Distance between consecutive x values. 
bool pixeldownsample 
If true, perform downsampling before plotting. 

Series x values are calculated using the following formula: x[i] = xoffSet + xstep*i. The algorithm automatically removes any INFs and NANs and then uses Series.Add method to add points to series.

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

using Dew.Math; using Dew.Math.Tee; Vector y = new Vector(100,false); y.RandGauss(); tChart1.Series.Clear(); tChart1.Series.Add(new Steema.TeeChart.Styles.Line()); MtxVecTee.DrawValues(y,tChart1[0],10.5,0.05,false);
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!