Search in sources :

Example 1 with Plot

use of smile.plot.Plot in project MindsEye by SimiaCryptus.

the class ProblemRun method plot.

/**
 * Plot plot.
 *
 * @param pts the pts
 * @return the plot
 */
public Plot plot(final double[][] pts) {
    Plot plot;
    switch(type) {
        case Scatter:
            plot = new ScatterPlot(pts);
            plot.setID(name);
            plot.setColor(color);
            return plot;
        case Line:
            plot = new LinePlot(pts);
            plot.setID(name);
            plot.setColor(color);
            return plot;
        default:
            throw new IllegalStateException(type.toString());
    }
}
Also used : ScatterPlot(smile.plot.ScatterPlot) LinePlot(smile.plot.LinePlot) ScatterPlot(smile.plot.ScatterPlot) LinePlot(smile.plot.LinePlot) Plot(smile.plot.Plot)

Aggregations

LinePlot (smile.plot.LinePlot)1 Plot (smile.plot.Plot)1 ScatterPlot (smile.plot.ScatterPlot)1