Package smile.plot.swing
Class StaircasePlot
java.lang.Object
smile.plot.swing.Shape
smile.plot.swing.Plot
smile.plot.swing.StaircasePlot
Staircase plot is a special case of line which is most useful to display
empirical distribution.
-
Constructor Summary
ConstructorsConstructorDescriptionStaircasePlot(Staircase... lines) Constructor.StaircasePlot(Staircase[] lines, Legend[] legends) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncanvas()Returns a canvas of the plot.double[]Returns the lower bound of data.double[]Returns the upper bound of data.static StaircasePlotof(double[][] data) Creates a line plot.static StaircasePlotCreates a line plot.voidDraws the shape.
-
Constructor Details
-
StaircasePlot
Constructor. -
StaircasePlot
Constructor.
-
-
Method Details
-
canvas
Description copied from class:PlotReturns a canvas of the plot. -
getLowerBound
public double[] getLowerBound()Description copied from class:PlotReturns the lower bound of data.- Specified by:
getLowerBoundin classPlot
-
getUpperBound
public double[] getUpperBound()Description copied from class:PlotReturns the upper bound of data.- Specified by:
getUpperBoundin classPlot
-
paint
Description copied from class:ShapeDraws the shape. -
of
Creates a line plot. -
of
Creates a line plot.
-