Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement