# WAPlots.Clear

Member of: SynthesisAPI.WAPlots

Removes the object that was added to 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.

'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.

'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.

'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.