AutoHistogram Object

The AutoHistogram object controls the 2D histogram settings.

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

Properties

AutoBin

BarStyle

BarWidth

BaseMode

BaseValue

BinSize

ColorCol

CumulativePlot

DataCol

DeleteAllBins

DisplayRelFreq

EnableSubBaseFill

Fill

GradientOrientation

ImageRepeat

Labels

LabelsAtBottom

Line

LoadImage

MinAuto

Minimum

NumberOfBins

Orientation

RepeatColors

Stacked

SubBaseFill

UseColorTable

UseFullImage

Methods

AddBin

AddFit

DeleteBin

LoadColorTable

LoadImage

ResetToDefault

Example

This example shows how to create a histogram.

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,

 'and Histogram1 as Object

  Dim Docs, Plot, Shapes, Graph1, Histogram1 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 histogram graph and assigns it

 'to the variable named "Graph1"

  Set Graph1 = Shapes.AddHistogramGraph(GrapherApp.Path + "\samples\histogram.dat")

 

 'Assigns the histogram plot to the

 'variable named "Histogram1"

  Set Histogram1 = Graph1.Plots(1)

 

End Sub