Class StaircasePlot


public class StaircasePlot extends Plot
Staircase plot is a special case of line which is most useful to display empirical distribution.
  • Constructor Details

    • StaircasePlot

      public StaircasePlot(Staircase... lines)
      Constructor.
    • StaircasePlot

      public StaircasePlot(Staircase[] lines, Legend[] legends)
      Constructor.
  • Method Details

    • legends

      public Optional<Legend[]> legends()
      Description copied from class: Plot
      Returns the optional name of shape, which will be used to draw a legend outside the box.
      Overrides:
      legends in class Plot
    • canvas

      public Canvas canvas()
      Description copied from class: Plot
      Returns a canvas of the plot.
      Overrides:
      canvas in class Plot
    • getLowerBound

      public double[] getLowerBound()
      Description copied from class: Plot
      Returns the lower bound of data.
      Specified by:
      getLowerBound in class Plot
    • getUpperBound

      public double[] getUpperBound()
      Description copied from class: Plot
      Returns the upper bound of data.
      Specified by:
      getUpperBound in class Plot
    • paint

      public void paint(Graphics g)
      Description copied from class: Shape
      Draws the shape.
      Specified by:
      paint in class Shape
    • of

      public static StaircasePlot of(double[][] data)
      Creates a line plot.
    • of

      public static StaircasePlot of(double[][] data, Color color, String label)
      Creates a line plot.