SharpPlot Reference > SharpPlot Methods > DrawScatterPlot Method

SharpPlot.DrawScatterPlot Method

Scatter plot from multiple y series and matching x values.

Example

sp = new SharpPlot(180,120);
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 ...

Scatter plots for discrete XY data | SharpPlot Members | SharpPlot.ScatterPlotStyle Property


Send comments on this topic
© Dyalog Ltd 2021