AutoFitPlot Object

The AutoFitPlot object contains fit plot settings.

Derived from: AutoPlot object (All methods and properties of AutoPlot apply to this object.)

Properties

ArrowScale

ClassToFit

Degree

EndArrow

Family

Fill

FillDirection

FirstX

fitType

FunctionOfY

LastX

Line

LocationAuto

LocationValue

MaxX

MinX

NumberPts

Option

PlotInterval

ScaleAuto

ScaleValue

ShapeAuto

ShapeValue

Span

StartArrow

StatDigits

StatNumberFormat

Symbol

SymbolAngle

SymbolFreq

UseCurveLimits

Methods

AddConfInterval

ChangeFitType

CopyStatsToClipboard

CopyStatsToReport

ExportFitData

InsertStatistics

LoadWeights

SaveWeights

SetCustomEquation

SetCustomFit

SetCustomParameter

SetCustomString

SetWeight

Example

The following script demonstrates how the AutoFitPlot object is used.

Sub Main

 

'Declares GrapherApp as an object

  Dim GrapherApp As Object

 

'Creates an instance of the Grapher Application object

 'and assigns it to the variable named "GrapherApp"

  Set GrapherApp = CreateObject("Grapher.Application")

 

 'Makes Grapher visible

  GrapherApp.Visible = True

 

 'Creates a plot document in Grapher and assigns

 'it to the variable named "Plot"

  Set Plot = GrapherApp.Documents.Add(grfPlotDoc)

 

 'Declares Graph as an object

  Dim Graph As Object

 

'Create line plot graph

 Set Graph = Plot.Shapes.AddLinePlotGraph("C:\Program Files\Golden Software\Grapher\Samples\bar chart orientations.dat",1,2)

 

'Declares LineScatterPlot as object

Dim LineScatterPlot As Object

 

'Sets the Line/Scatter Plot to LineScatterPlot object

Set LineScatterPlot = Graph.Plots.Item(1)

 

'Add a Fit curve

Set FitCurve = LineScatterPlot.AddFit(grfLinearFit)

 

End Sub