WAPlots.CreatePlotVB6

Returns a bitmap object that represents the plot. (VBA/VB6 only.)

Syntax
.CreatePlotVB6(PlotType, UserSettings, Width, Height)

Parameters
PlotType
 * Required. The type of plot to create. Can be any WAPlotType constant.

UserSettings
 * Optional. The WAPlotSettings object that represents the plot's settings.

Width
 * Optional. Integer. The plot width. Default value = 1150 pixels.

Height
 * Optional. Integer. The plot height. Default value = 800 pixels.

Example
To create a plot, you must first add an object to the plot:
 * Use the WAPlots.AddDataset method to add either a calculated WeibullDataSet or ALTADataSet object.
 * OR


 * Use the WAPlots.AddModel method to add a cModel object.

The following example uses a  object to create the plot.

VBA WDS WeibullDataSet WDS.AddFailure(1, 1) WDS.AddFailure(2, 1) WDS.AddFailure(3, 1) WDS.Calculate MyPlot WAPlots MyPlot.AddDataset(WDS) Image1.Picture = MyPlot.CreatePlotVB6(WAPlotType_Probability)