AddFunctionPlotGraph2

The AddFunctionPlotGraph2 method creates a new 2D function plot. Returns an AutoGraph object.

Syntax

object.AddFunctionPlotGraph2( Type, function1, function2, firstValue, lastValue, 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, graph name

 

Remarks

See Mathematical Functions for information on writing function equations.

Example 1

This example shows how to create a function plot.

Shapes.AddFunctionPlotGraph2( grfFunctionPlotYX, "2+x")

Example 2

This example shows how to create a parametric function plot.

Shapes.AddFunctionPlotGraph2( grfFunctionPlotParametric, " 2*cos(T)", "4*T")

Example 3

This example shows how to create an XY function plot.

Shapes.AddFunctionPlotGraph2( grfFunctionPlotXY, "2*y")

 

Used by: AutoShapes collection

See Also

AddFunctionPlot2