Reference > Methods > DrawScatterPlot Method

SharpPlot.DrawScatterPlot Method

Scatter plot from multiple y series and matching x values.

Example

sp.SetMargins(9,18,18,4);
sp.ScatterPlotStyle = ScatterPlotStyles.ModelFit|ScatterPlotStyles.Risers;
sp.SetMarkers(Marker.Lozenge);
sp.SetLineStyles(LineStyle.Dash);
ydata = new int[] {190,270,310,120,190,230};
xdata = new int[] {17,31,29,14,16,24};
sp.DrawScatterPlot(ydata,xdata);

The short tutorial shows a few of the possibilities and some sample code.

See also ...

SharpPlot Members


Send comments on this topic
© Dyalog Ltd 2013