WAPlots.CreatePlotVB6: Difference between revisions
John Leavitt (talk | contribs) m (Protected "WAPlots.CreatePlotVB6" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading]) |
John Leavitt (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:APIClass|WAPlots Class|WAPlots}} | {{Template:APIClass|WAPlots Class|WAPlots}} | ||
Create the plot based on the WeibullDataSet and/or the | Create the plot based on the [[WeibullDataSet Class|WeibullDataSet]] and/or the [[ALTADataSet Class|ALTADataSet]] entered into the [[WAPlots Class|WAPlots]]. Returns an IPicture object of the plot for VBA/VB6. | ||
== Method Syntax == | == Method Syntax == |
Revision as of 23:26, 22 January 2014
Create the plot based on the WeibullDataSet and/or the ALTADataSet entered into the WAPlots. Returns an IPicture object of the plot for VBA/VB6.
Method Syntax
CreatePlotVB6( ByVal PlotType As WAPlotType, Optional ByVal UserSettings As WAPlotSettings = Nothing , Optional ByVal Width As Integer = 1150, Optional ByVal Height As Integer = 800) As Object
Creates a IPicture image object containing the plot image.
Parameters
PlotType Set the type of plot desired, of the WAPlotType enum.
UserSettings Sets the plot settings via an instance of the WAPlotSettings class.
Width Set the width, in pixels, of the finished plot.
Height Set the height, in pixels, of the finished plot.
Usage Example
Create a new Weibull/ALTA Plot instance.
Dim WeibullALTAPlot As New WAPlots
Declare a WeibullDataSet. See New WeibullDataSet for additional details.
Dim WDS As New WeibullDataSet
Add values to the raw data. See WeibullDataSet.AddFailure for additional details.
WDS.AddFailure(1, 1) WDS.AddFailure(2, 1) WDS.AddFailure(3, 1)
Calculate the WeibullDataSet.
WDS.Calculate
Add the WeibullDataSet to the WAPlots.
WeibullALTAPlot.AddDataset(WDS)
Create the WAPlot. In this example, it will create a Probability plot.
Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlotVB6(WAPlotType.Probability)