WAPlots Class: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) No edit summary |
John Leavitt (talk | contribs) |
||
Line 17: | Line 17: | ||
== Formatted Usage Example == | == Formatted Usage Example == | ||
{{APIComment|Create a new Weibull/ALTA Plot instance.}} | {{APIComment|Create a new Weibull/ALTA Plot instance. See [[WAPlots.CreatePlot|CreatePlot]] for additional details.}} | ||
Dim WeibullALTAPlot As New WAPlots | Dim WeibullALTAPlot As New WAPlots | ||
Line 28: | Line 28: | ||
WDS.AddFailure(3, 1) | WDS.AddFailure(3, 1) | ||
{{APIComment|Add the WeibullDataSet to the WAPlots.}} | {{APIComment|Add the WeibullDataSet to the WAPlots. See [[WeibullDataSet Class.New WeibulDataSet|New WeibulDataSet]] for additional details.}} | ||
WeibullALTAPlot.AddDataset(WDS) | WeibullALTAPlot.AddDataset(WDS) | ||
{{APIComment|Create the WAPlot. In this example, it will create a Probability plot.}} | {{APIComment|Create the WAPlot. In this example, it will create a Probability plot. See [[WAPlotType|WAPlotType]] for additional details.}} | ||
Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability) | Dim FinalPlot As Bitmap = WeibullALTAPlot.CreatePlot(WAPlotType.Probability) | ||
Revision as of 18:18, 6 February 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 Adds Weibull or ALTA data set for subsequent plotting.
- CreatePlot Creates a bitmap containing the plot image.
- CreatePlotVB6 For VB6/VBA users only - use it instead of CreatePlot. Returns the picture containing the image of the plot.
Properties
- ErrorHappened Whether an error happened during the last plotting.
- ErrorMessage The error that happened during the last plotting. Only set if ErrorHappened returns 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