/** * Adds a poly line plot to this canvas. * @param data a n-by-2 or n-by-3 matrix that describes coordinates of points. */ public LinePlot line(double[]... data) { return line(null, data); }
/** * Adds a poly line plot to this canvas. * @param data a n-by-2 or n-by-3 matrix that describes coordinates of points. * @param style the stroke style of line. */ public LinePlot line(double[][] data, Line.Style style) { return line(null, data, style); }
/** * Adds a poly line plot to this canvas. * @param y a data vector that describes y coordinates of points. The x * coordinates will be [0, n), where n is the length of y. * @param color the color of line. */ public LinePlot line(double[] y, Color color) { return line(null, y, color); }
/** * Add a poly line plot of given data into the current canvas. * @param y a data vector that describes y coordinates of points. The x * coordinates will be [0, n), where n is the length of y. * @param style the stroke style of line. */ public LinePlot line(double[] y, Line.Style style) { return line(null, y, style); }
/** * Adds a poly line plot to this canvas. * @param y a data vector that describes y coordinates of points. The x * coordinates will be [0, n), where n is the length of y. * @param style the stroke style of line. * @param color the color of line. */ public LinePlot line(double[] y, Line.Style style, Color color) { return line(null, y, style, color); }
/** * Adds a poly line plot to this canvas. * @param y a data vector that describes y coordinates of points. The x * coordinates will be [0, n), where n is the length of y. */ public LinePlot line(double[] y) { return line(null, y); }
/** * Adds a poly line plot to this canvas. * @param data a n-by-2 or n-by-3 matrix that describes coordinates of points. * @param color the color of line. */ public LinePlot line(double[][] data, Color color) { return line(null, data, color); }
/** * Adds a poly line plot to this canvas. * @param data a n x 2 or n x 3 matrix that describes coordinates of points. * @param style the stroke style of line. * @param color the color of line. */ public LinePlot line(double[][] data, Line.Style style, Color color) { return line(null, data, style, color); }