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
ConstructorDescriptionStaircasePlot
(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.legends()
Returns the optional name of shape, which will be used to draw a legend outside the box.static StaircasePlot
of
(double[][] data) Creates a line plot.static StaircasePlot
Creates a line plot.void
Draws the shape.
-
Constructor Details
-
StaircasePlot
Constructor. -
StaircasePlot
Constructor.
-
-
Method Details
-
legends
Description copied from class:Plot
Returns the optional name of shape, which will be used to draw a legend outside the box. -
canvas
Description copied from class:Plot
Returns a canvas of the plot. -
getLowerBound
public double[] getLowerBound()Description copied from class:Plot
Returns the lower bound of data.- Specified by:
getLowerBound
in classPlot
-
getUpperBound
public double[] getUpperBound()Description copied from class:Plot
Returns the upper bound of data.- Specified by:
getUpperBound
in classPlot
-
paint
Description copied from class:Shape
Draws the shape. -
of
Creates a line plot. -
of
Creates a line plot.
-