Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void printGraph(double[][] points) {
- //
- Plot myPlot = new Plot();
- myPlot.setTitle("Plot example");
- myPlot.setXLabel("x");
- myPlot.setYLabel("s(x)");
- int dl = points.length;
- myPlot.setMarksStyle("dots", 0);
- //myPlot.setImpulses(true, 0);
- //for(int i=0; i<ticks.length; i++) myPlot.addXTick("",ticks[i][0]);
- for (int i = 0; i < dl; i++) myPlot.addPoint(0, points[i][0], points[i][1], false);
- PlotApplication app = new PlotApplication(myPlot);
- app.setSize(800, 400);
- app.setLocation(100, 100);
- app.setTitle("MyPicture");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement