Menu

Please help plotting stair graphs

2004-07-09
2004-08-16
  • Nobody/Anonymous

    Hi does any one know how to plot stair graphs?
    Actually what I am trying to do is to plot a digital signal...

     
    • Yann RICHET

      Yann RICHET - 2004-08-16

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.