WAPlots.CreatePlot: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 22: | Line 22: | ||
== Example == | == Example == | ||
'''VB.NET''' | |||
{{APIComment|'Declare a WeibullDataSet object.}} | {{APIComment|'Declare a WeibullDataSet object.}} | ||
Dim WDS As New WeibullDataSet | {{APIPrefix|Dim}} WDS {{APIPrefix|As New}} WeibullDataSet | ||
{{APIComment|'Add failures to the data set.}} | {{APIComment|'Add failures to the data set.}} | ||
Line 31: | Line 33: | ||
{{APIComment|'Create a WAPlots object.}} | {{APIComment|'Create a WAPlots object.}} | ||
Dim MyPlot As New WAPlots | {{APIPrefix|Dim}} MyPlot {{APIPrefix|As New}} WAPlots | ||
{{APIComment|'Add the data set to the plot.}} | {{APIComment|'Add the data set to the plot.}} | ||
Line 37: | Line 39: | ||
{{APIComment|'Create a Probability plot and save it as a bitmap file.}} | {{APIComment|'Create a Probability plot and save it as a bitmap file.}} | ||
Dim FinalPlot As Bitmap = MyPlot.CreatePlot(WAPlotType.Probability) | {{APIPrefix|Dim}} FinalPlot {{APIPrefix|As}} Bitmap = MyPlot.CreatePlot(WAPlotType.Probability) |
Revision as of 23:26, 19 April 2016
Member of: SynthesisAPI.WAPlots
Returns a bitmap object that represents the plot. (VB.NET only)
Syntax
.CreatePlot(PlotType, UserSettings, Width, Height)
Parameters
PlotType
- Required. The type of plot to create. Can be any WAPlotType constant.
UserSettings
- Optional. The WAPlotSettings object that represents the plot's settings.
Width
- Optional. Integer. The plot width. Default value = 1150 pixels.
Height
- Optional. Integer. The plot height. Default value = 800 pixels.
Example
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) 'Create a WAPlots object. Dim MyPlot As New WAPlots 'Add the data set to the plot. MyPlot.AddDataset(WDS) 'Create a Probability plot and save it as a bitmap file. Dim FinalPlot As Bitmap = MyPlot.CreatePlot(WAPlotType.Probability)