Class PlotBuilders

java.lang.Object
edu.cnu.mdi.splot.plot.PlotBuilders

public final class PlotBuilders extends Object
Entry points for concise construction of native MDI plots.
  • Method Details

    • xy

      public static XYPlotBuilder xy(String title)
      Starts an XY plot builder.
      Parameters:
      title - plot title
      Returns:
      new builder
    • xy

      public static PlotPanel xy(String title, String xLabel, String yLabel, String seriesName, double[] x, double[] y)
      Builds a one-series XY plot with standard decorations and labels.
      Parameters:
      title - plot title
      xLabel - horizontal-axis label
      yLabel - vertical-axis label
      seriesName - legend name
      x - x coordinates
      y - y coordinates
      Returns:
      native plot panel