WAPlots Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
*[[WAPlots.AddDataset|AddDataset( WADataSet )]] {{APIComment|Adds the Weibull or ALTA data set that will be plotted.}} | *[[WAPlots.AddDataset|AddDataset( WADataSet )]] {{APIComment|Adds the Weibull or ALTA data set that will be plotted.}} | ||
*[[WAPlots.CreatePlot|CreatePlot( WAPlotType, [WAPlotSettings], [Integer], [Integer] )]] {{APIComment|{{Template:WAPlots.CreatePlot.Cmt}}}} | *[[WAPlots.CreatePlot|CreatePlot( WAPlotType, [WAPlotSettings], [Integer], [Integer] )]] {{APIComment|{{Template:WAPlots.CreatePlot.Cmt}}}} | ||
*[[WAPlots.CreatePlotVB6|CreatePlotVB6( WAPlotType, [WAPlotSettings], [Integer], [Integer] )]] {{APIComment| | *[[WAPlots.CreatePlotVB6|CreatePlotVB6( WAPlotType, [WAPlotSettings], [Integer], [Integer] )]] {{APIComment|{{Template:WAPlots.CreatePlotVB6.Cmt}}}} | ||
== Properties == | == Properties == |
Revision as of 17:24, 3 March 2014
Creates a plot based on a fitted model in a WeibullDataSet or ALTADataSet object.
Constructors
- New WAPlots Create an Weibull or ALTA plot Class.
Methods
- Clear Removes all data sets from plotting collection.
- AddDataset( WADataSet ) Adds the Weibull or ALTA data set that will be plotted.
- 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.
Properties
- ErrorHappened (as boolean) Whether an error happened during the last plotting.
- ErrorMessage (as string) The error that happened during the last plotting. Set only if ErrorHappened is true.
Formatted Usage Example
Create a new Weibull/ALTA Plot instance. See CreatePlot for additional details.
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 AddFailure for additional details.
WDS.AddFailure(1, 1) WDS.AddFailure(2, 1) WDS.AddFailure(3, 1)
Add the WeibullDataSet to the WAPlots. See New WeibulDataSet for additional details.
WeibullALTAPlot.AddDataset(WDS)
Create the WAPlot. In this example, it will create a Probability plot. See WAPlotType for additional details.
Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability)
If there were any issues creating the plot, ErrorHappened would be True, and ErrorString will display the reason.
Dim ErrorString as String If WeibullALTAPlot.ErrorHappened Then ErrorString = WeibullALTAPlot.ErrorMessage End If