AutoErrorBars Object

The AutoErrorBars object controls error bar properties and they are accessed from AutoLinePlot ErrorBars property.

Properties

Application

AvgBarOn

AvgBarWidth

AvgConnectPts

AvgLine

AvgSymbol

AvgSymbolsOn

AvgValueOrientation

HorzBarCol

HorzBarColNeg

HorzBarDirection

HorzBarMultiplier

HorzBarMultiplerNeg

HorzBarStep

HorzBarType

HorzBarTypeNeg

HorzBarWidth

HorzConnectFill

HorzConnectPts

HorzCustomNegativeBar

HorzLine

HorzLineNeg

Line

Parent

VertBarCol

VertBarColNeg

VertBarDirection

VertBarMultiplier

VertBarMultiplierNeg

VertBarStep

VertBarType

VertBarTypeNeg

VertBarWidth

VertConnectFill

VertConnectPts

VertCustomNegativeBar

VertLine

VertLineNeg

 

Example

This example shows how to access the error bar properties.

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")

 

 'Make Grapher visible

  GrapherApp.Visible = True

 

 'Declare Docs, Plot, Shapes, Graph1, Line1 and

 'Errorbars as Object

  Dim Docs, Plot, Shapes, Graph1, Line1, Errorbars As Object

 

 'Assigns the Documents collection to the

 'variable named "Docs"

  Set Docs = GrapherApp.Documents

 

 'Creates a new plot window and assigns it to the

 'variable named "Plot"

  Set Plot = Docs.Add(grfPlotDoc)

 

 'Assigns the AutoShapes collection to the

 'variable named "Shapes"

  Set Shapes = Plot.Shapes

 

 'Adds a line plot

  Set Graph1 = Shapes.AddLinePlotGraph(GrapherApp.Path + \samples\bar chart orientations.dat)

 

 'Sets the plot to the variable named Line1

  Set Line1 = Graph1.Plots(1)

 

 'Sets the error bar properties to the

 'variable named Errorbars

  Set Errorbars = Line1.ErrorBars

 

End Main