AddDataArray     Procedure (Sub)

Public Sub AddDataArray(nX As Integer, x0 As Single, X1 As Single, nY As Integer, y0 As Single, Y1 As Single, zData() As Single, Optional z0 As Single = 0, Optional z0Color As Long = -1)

Defines an array of data to plot. Note that there only two ways to define the data to plot: AddFunction and AddDataArray. Only one of these should be used in each graph. See Demo2 as an example. z0 setting then bar graphs will be split with higher values pointing up and lower values down. See Demo2 as an example. (ie a flat plate) and its color will be set to z0Color instead of the value defined by the z-color table of AddBarColors

ParameterTypeDescription

nX

Integer

Number of elements along the x-axis

x0

Single

Minimum value on x-axis

X1

Single

Maximum value on x-axis

nY

Integer

Number of elements along the y-axis

y0

Single

Minimum value on y-axis

Y1

Single

Maximum value on y-axis

zData()

Single

Z data

z0

Single

Optional 0-value on z-axis. The default is z0 = 0. When z values occur both above and below this

z0Color

Long

A color value to use as a base color: when zData(i,j) = z0 the bar height will be zero

See Also..

AddFunction   AddBarColors  

Example..

Call ecGraph3D1.AddDataArray(nx, x0, x1, ny, y0, y1, zdata, z0, z0color) 


     
Contents     Variables     Events     Properties     Functions     Subs

ecGraph3D    Copyright © 2008, Encore Consulting Pty Ltd