smile.plot
Class StaircasePlot
- java.lang.Object
-
- smile.plot.Shape
-
- smile.plot.Plot
-
- smile.plot.StaircasePlot
-
public class StaircasePlot extends Plot
Staircase plot is a special case of line which is most useful to display empirical distribution.
-
-
Constructor Summary
Constructors Constructor and Description StaircasePlot(double[][] data)Constructor.StaircasePlot(double[][] data, java.awt.Color color)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidpaint(Graphics g)Draw the component with given graphics object.static PlotCanvasplot(double[]... data)Create a plot canvas with the staircase line plot of given data.static PlotCanvasplot(java.lang.String id, double[]... data)Create a plot canvas with the staircase line plot of given data.-
Methods inherited from class smile.plot.Plot
getID, getToolBar, getToolTip, setID
-
-
-
-
Constructor Detail
-
StaircasePlot
public StaircasePlot(double[][] data)
Constructor.
-
StaircasePlot
public StaircasePlot(double[][] data, java.awt.Color color)Constructor.
-
-
Method Detail
-
paint
public void paint(Graphics g)
Description copied from class:ShapeDraw the component with given graphics object.
-
plot
public static PlotCanvas plot(double[]... data)
Create a plot canvas with the staircase line plot of given data.- Parameters:
data- a n x 2 or n x 3 matrix that describes coordinates of points.
-
plot
public static PlotCanvas plot(java.lang.String id, double[]... data)
Create a plot canvas with the staircase line plot of given data.- Parameters:
id- the id of the plot.data- a n x 2 or n x 3 matrix that describes coordinates of points.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG