/** * Create a plot canvas with the bar plot of given data. * @param data a vector of which values will determine the heights of bars. * @param labels the labels for each bar. */ public static PlotCanvas plot(double[] data, String[] labels) { return plot(null, data, labels); }
/** * Create a plot canvas with the bar plot of given data. * @param data a vector of which values will determine the heights of bars. */ public static PlotCanvas plot(double[] data) { return plot(null, data); }
/** * Create a plot canvas with the bar plot of given data. * @param data a n x 2 matrix of which data[][0] determine the location of * bars and data[][1] determine the heights of bars. data[][0] will also be * used as the labels. For best view, data[][0] should be monotonic. */ public static PlotCanvas plot(double[]... data) { return plot(null, data); }