WAPlots.Clear

From ReliaWiki
Revision as of 16:49, 20 April 2016 by Kate Racaza (talk | contribs)
Jump to navigation Jump to search
APIWiki.png


Member of: SynthesisAPI.WAPlots


Removes the added WeibullDataSet or ALTADataSet object from the plot, which is required before a new object can be added.

Syntax

.Clear()

Example

VBA

 'Declare a WeibullDataSet object. 
  Dim WDS As New WeibullDataSet
 
 'Add failures to the data set. 
  Call WDS.AddFailure(1, 1)
  Call WDS.AddFailure(2, 1)
  Call WDS.AddFailure(3, 1)

 'Fit the data to the life distribution, using all default analysis settings.   
   WDS.Calculate

 'Create a WAPlots object.  
  Dim MyPlot As New WAPlots

 'Add the calculated data set to the plot. 
  Call MyPlot.AddDataset(WDS)
 
 'Remove the data set from the plot. 
  MyPlot.Clear
VB.NET

 'Declare a WeibullDataSet object. 
  Dim WDS As New WeibullDataSet
 
 'Add failures to the data set. 
  WDS.AddFailure(1, 1)
  WDS.AddFailure(2, 1)
  WDS.AddFailure(3, 1)

 'Fit the data to the life distribution, using all default analysis settings.   
   WDS.Calculate

 'Create a WAPlots object.  
  Dim MyPlot As New WAPlots

 'Add the calculated data set to the plot. 
  MyPlot.AddDataset(WDS)
 
 'Remove the data set from the plot. 
  MyPlot.Clear