Variogram Object

The Variogram object represents an instance of a variogram plot. Variograms are created by the Shapes.AddVariogram method.

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

The following table provides the properties of Variogram object:

Property

Description

Axes

Returns the axes collection. It is a read-only property.

EstimatorType

Returns/sets the variogram estimation method.

ExperimentalLine

Returns the experimental line properties. It is a read-only property.

LagDirection

Returns/sets the lag direction angle (in degrees).

LagTolerance

Returns/sets the lag direction tolerance (in degrees).

LagWidth

Returns/sets the lag width (in XY data units).

MaxLagDistance

Returns/sets the maximum lag distance (in XY data units).

Model

Returns/sets the array of variogram component objects.

ModelLine

Returns the model line properties. It is a read-only property.

NumLags

Returns/sets the number of lags.

PairsFont

Returns the pair annotation properties. It is a read-only property.

ShowExperimental

Returns/sets the show experimental line state.

ShowModel

Returns/sets the show model line state.

ShowPairs

Returns/sets the show pairs state.

ShowSubTitle

Returns/sets the show subtitle state.

ShowSymbols

Returns/sets the show plot symbols state.

ShowVariance

Returns/sets the show variance line state.

SubTitleFont

Returns the plot subtitle font properties. It is a read-only property.

Symbol

Returns the symbol properties. It is a read-only property.

Title

Returns/sets the plot title.

TitleFont

Returns the plot title font properties. It is a read-only property.

VarianceLine

Returns the variance line properties. It is a read-only property.

VerticalScale

Returns/sets the vertical scale.

The following table provides the methods of the Variogram object:

Method

Description

AutoFit

Automatically fits variogram parameters to the current model.

Export

Exports the experimental variogram to a data file.

Statistics

Returns various data statistics.

Example 1

This script displays all the methods and properties in the Variogram object.

Example 2

The following script demonstrates how the Variogram object is used in reference to the Shapes collection.

Sub Main

 

'Declares SurferApp as an object

Dim SurferApp As Object

 

'Creates an instance of the Surfer Application object and assigns it

'to the variable named "SurferApp"

Set SurferApp = CreateObject("Surfer.Application")

 

'Makes Surfer visible

SurferApp.Visible = True

 

'Declares Plot as an object

Dim Plot As Object

 

'Creates a plot document in Surfer and assigns it to the variable

'named "Plot"

Set Plot = SurferApp.Documents.Add(srfDocPlot)

 

'Declares Shapes as an object

Dim Shapes As Object

 

'Assigns the Shapes collection to the variable named "Shapes"

Set Shapes = Plot.Shapes

 

'Declares Variogram as an object

Dim Variogram As Object

 

'Creates a variogram and assigns it to the variable named "Variogram"

Set Variogram = Shapes.AddVariogram(SurferApp.Path+"\Samples\demogrid.dat")

 

End Sub