/** * Adds a scatter plot to this canvas. * @param data a n-by-2 or n-by-3 matrix that describes coordinates of points. * @param color the color used to draw points. * @return the scatter plot for the given points. */ public ScatterPlot points(double[][] data, Color color) { return points(null, data, color); }
/** * Adds a scatter plot to this canvas. * @param data a n-by-2 or n-by-3 matrix that describes coordinates of points. * @return the scatter plot for the given points. */ public ScatterPlot points(double[]... data) { return points(null, data); }
/** * Adds a scatter plot to this canvas. * @param data a n-by-2 or n-by-3 matrix that describes coordinates of points. * @param labels labels of points. * @return the scatter plot for the given points. */ public ScatterPlot points(double[][] data, String[] labels) { return points(null, data, labels); }
/** * Adds a scatter plot to this canvas. * @param data a n-by-2 or n-by-3 matrix that describes coordinates of points. * @param legend the legend used to draw points. * <ul> * <li> . : dot * <li> + : + * <li> - : - * <li> | : | * <li> * : star * <li> x : x * <li> o : circle * <li> O : large circle * <li> @ : solid circle * <li> # : large solid circle * <li> s : square * <li> S : large square * <li> q : solid square * <li> Q : large solid square * <li> others : dot * </ul> * @return the scatter plot for the given points. */ public ScatterPlot points(double[][] data, char legend) { return points(null, data, legend); }
/** * Adds a scatter plot to this canvas. * @param data a n-by-2 or n-by-3 matrix that describes coordinates of points. * @param color the color used to draw points. * @param legend the legend used to draw points. * <ul> * <li> . : dot * <li> + : + * <li> - : - * <li> | : | * <li> * : star * <li> x : x * <li> o : circle * <li> O : large circle * <li> @ : solid circle * <li> # : large solid circle * <li> s : square * <li> S : large square * <li> q : solid square * <li> Q : large solid square * <li> others : dot * </ul> * @return the scatter plot for the given points. */ public ScatterPlot points(double[][] data, char legend, Color color) { return points(null, data, legend, color); }