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 |
Returns the axes collection. It is a read-only property. |
|
Returns/sets the variogram estimation method. |
|
Returns the experimental line properties. It is a read-only property. |
|
Returns/sets the lag direction angle (in degrees). |
|
Returns/sets the lag direction tolerance (in degrees). |
|
Returns/sets the lag width (in XY data units). |
|
Returns/sets the maximum lag distance (in XY data units). |
|
Returns/sets the array of variogram component objects. |
|
Returns the model line properties. It is a read-only property. |
|
Returns/sets the number of lags. |
|
Returns the pair annotation properties. It is a read-only property. |
|
Returns/sets the show experimental line state. |
|
Returns/sets the show model line state. |
|
Returns/sets the show pairs state. |
|
Returns/sets the show subtitle state. |
|
Returns/sets the show plot symbols state. |
|
Returns/sets the show variance line state. |
|
Returns the plot subtitle font properties. It is a read-only property. |
|
Returns the symbol properties. It is a read-only property. |
|
Returns/sets the plot title. |
|
Returns the plot title font properties. It is a read-only property. |
|
Returns the variance line properties. It is a read-only property. |
|
Returns/sets the vertical scale. |
The following table provides the methods of the Variogram object:
Method |
Description |
Automatically fits variogram parameters to the current model. |
|
Exports the experimental variogram to a data file. |
|
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