Add3DFunctionPlot2 Method

The Add3DFunctionPlot2 method adds a 3D function plot to an existing 3D graph, equivalent to Graph | Add to Graph | Plot. Returns an Auto3DFunctionPlot object.

Syntax

object.Add3DFunctionPlot2( Type, function1, function2, firstValue, lastValue, xAxis, yAxis, id )

 

Parameter Type Description
Type grfFunctionPlotType required, function plot type (Y=F(X), X=F(Y), or parametric)
function1 String required, function to plot (y=f(x), x=f(y), or
function2 Variant optional, function to plot ( y=g(T) if type is parametric; otherwise ignored)
firstValue Variant optional, first value to evaluate the function(s) at, default = 0
lastValue Variant optional, last value to evaluate the function(s) at, default = 25
id Variant optional, plot name

 

Remarks

3D graphs can only be added to other 3D graphs. See Mathematical Functions for information on writing function equations.

Example

This example shows how to add a 3D XYY function plot to an existing 3D ribbon/wall plot.

Dim Graph2 As Object

Set Graph2 = Shapes.Add3DLinePlotGraph(GrapherApp.Path + "\samples\bar chart orientations.dat")

Graph2.Add3DFunctionPlot2( grfFunctionPlotYX, "2*Ln( X )", , 1, 400)

 

Used by: AutoGraph object

See Also

Add3DFunctionPlotGraph2