07-26-2012 05:53 PM
Solved! Go to Solution.
07-27-2012 06:25 AM
Hi,
Is this what you're looking for?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
With ScatterPlot1
.LineStyle = NationalInstruments.UI.LineStyle.None
.PointStyle = NationalInstruments.UI.PointStyle.SolidDiamond
.PointColor = Color.Lime
End With
With ScatterPlot2
.LineStyle = NationalInstruments.UI.LineStyle.None
.PointStyle = NationalInstruments.UI.PointStyle.SolidDiamond
.PointColor = Color.Cyan
End With
ScatterGraph1.XAxes.Item(0).Mode = AxisMode.Fixed
ScatterGraph1.XAxes.Item(0).Range = New Range(0, 10)
ScatterGraph1.YAxes.Item(0).Mode = AxisMode.Fixed
ScatterGraph1.YAxes.Item(0).Range = New Range(0, 10)
Dim xdata(1) As Double
Dim ydata(1) As Double
xdata(0) = 2
xdata(1) = 6
ydata(0) = 2
ydata(1) = 6
ScatterPlot1.PlotXY(xdata, ydata)
xdata(0) = 3
xdata(1) = 6
ydata(0) = 4
ydata(1) = 9
ScatterPlot2.PlotXY(xdata, ydata)
Catch ex As Exception
End Try
End Sub
Hope this helps
Curt
07-27-2012 06:58 PM