WAPlots Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 16: | Line 16: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|Create a new Weibull/ALTA Plot instance. See [[WAPlots.CreatePlot|CreatePlot]] | {{APIComment|'Create a new Weibull/ALTA Plot instance. See [[WAPlots.CreatePlot|CreatePlot]].}} | ||
Dim WeibullALTAPlot As New WAPlots | |||
{{APIComment|'Declare a WeibullDataSet. See [[WeibullDataSet Class|WeibullDataSet]].}} | |||
Dim WDS As New WeibullDataSet | |||
{{APIComment| | {{APIComment|'Add values to the raw data. See [[WeibullDataSet.AddFailure|AddFailure]].}} | ||
WDS.AddFailure(1, 1) | |||
WDS.AddFailure(2, 1) | |||
WDS.AddFailure(3, 1) | |||
{{APIComment|'Add the WeibullDataSet to the WAPlots.}} | |||
WeibullALTAPlot.AddDataset(WDS) | |||
{{APIComment|Add the WeibullDataSet to the WAPlots | {{APIComment|'Create a Probability plot. See [[WAPlotType Enumeration|WAPlotType]] for plot types.}} | ||
Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability) | |||
{{APIComment|Create | |||
Revision as of 17:08, 28 April 2014
Creates a plot based on a fitted model in a WeibullDataSet or ALTADataSet object.
Constructors
- WAPlots Creates a new WAPlots object.
Methods
- AddDataset( WADataSet ) Adds the specified WeibullDataSet or ALTADataSet object that the plot will be based on.
- CreatePlot( WAPlotType, [WAPlotSettings], [Integer], [Integer] ) Returns a bitmap object with the specified plot. Not for use with VB6/VBA.
- CreatePlotVB6( WAPlotType, [WAPlotSettings], [Integer], [Integer] ) Returns an IPicture object with the specified plot. For VBA/VB6 only.
- Clear Removes the added WeibullDataSet/ALTADataSet object. (Required before a new data set can be added.)
Properties
- ErrorHappened (as boolean) Whether an error happened during the creation of the plot.
- ErrorMessage (as string) The error that happened during the creation of the plot. Set only if ErrorHappened is true.
Usage Example
'Create a new Weibull/ALTA Plot instance. See CreatePlot. Dim WeibullALTAPlot As New WAPlots 'Declare a WeibullDataSet. See WeibullDataSet. Dim WDS As New WeibullDataSet
'Add values to the raw data. See AddFailure. WDS.AddFailure(1, 1) WDS.AddFailure(2, 1) WDS.AddFailure(3, 1) 'Add the WeibullDataSet to the WAPlots. WeibullALTAPlot.AddDataset(WDS) 'Create a Probability plot. See WAPlotType for plot types. Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability)