SHARE
TWEET

Untitled

a guest Jan 21st, 2020 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public static void printGraph(double[][] points) {
  2.         //
  3.         Plot myPlot = new Plot();
  4.         myPlot.setTitle("Plot example");
  5.         myPlot.setXLabel("x");
  6.         myPlot.setYLabel("s(x)");
  7.         int dl = points.length;
  8.         myPlot.setMarksStyle("dots", 0);
  9.         //myPlot.setImpulses(true, 0);
  10.         //for(int i=0; i<ticks.length; i++) myPlot.addXTick("",ticks[i][0]);
  11.         for (int i = 0; i < dl; i++) myPlot.addPoint(0, points[i][0], points[i][1], false);
  12.         PlotApplication app = new PlotApplication(myPlot);
  13.         app.setSize(800, 400);
  14.         app.setLocation(100, 100);
  15.         app.setTitle("MyPicture");
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top