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.
- public void DrawScatterPlot(int[] yValues);
- public void DrawScatterPlot(double[] yValues);
- public void DrawScatterPlot(int[] yValues,int[] xValues);
- public void DrawScatterPlot(double[] yValues,int[] xValues);
- public void DrawScatterPlot(int[] yValues,double[] xValues);
- public void DrawScatterPlot(double[] yValues,double[] xValues);
- public void DrawScatterPlot(int[] yValues,string[] xCategories);
- public void DrawScatterPlot(double[] yValues,string[] xCategories);
- public void DrawScatterPlot(int[][] yValues,int[] xValues);
- public void DrawScatterPlot(double[][] yValues,int[] xValues);
- public void DrawScatterPlot(int[][] yValues,double[] xValues);
- public void DrawScatterPlot(double[][] yValues,double[] xValues);
See also ...SharpPlot Members
Send comments on this topic © Dyalog Ltd 2013
|