new FrameView(new Plot2DPanel(DoubleArray.random(10, 2).sort(0), "Staircase Plot 2D", PlotPanel.STAIRCASE));
replace DoubleArray.random(10, 2).sort(0) with your datas in a double[][] object.
Note that the last value of the last column of your array is not used for the staircase plot.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi does any one know how to plot stair graphs?
Actually what I am trying to do is to plot a digital signal...
new FrameView(new Plot2DPanel(DoubleArray.random(10, 2).sort(0), "Staircase Plot 2D", PlotPanel.STAIRCASE));
replace DoubleArray.random(10, 2).sort(0) with your datas in a double[][] object.
Note that the last value of the last column of your array is not used for the staircase plot.