Examples of addScatterPlot()


Examples of org.math.plot.Plot2DPanel.addScatterPlot()

      double[][] XYZ = new double[10][2];
      for (int j = 0; j < XYZ.length; j++) {
        XYZ[j][0] = /*1 + */Math.random();
        XYZ[j][1] = /*100 * */Math.random();
      }
      p2.addScatterPlot("toto" + i, XYZ);
    }
    p2.addQuantiletoPlot(0, 1, 1.0, true, 0.2);
    new FrameView(p2).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
}
View Full Code Here

Examples of org.math.plot.Plot2DPanel.addScatterPlot()

      for (int j = 0; j < XYZ.length; j++) {
        XYZ[j][0] = /*1 + */Math.random();
        XYZ[j][1] = /*100 * */10 * Math.random();
      }

      p2.addScatterPlot("toto" + i, XYZ);
    }
    p2.getPlot(0).addQuantiles(1, new double[] {/*-3,-2,*/-4, -2, -0.5, 0, 0.5, 2, 4 /*,2,3*/});
    p2.getPlot(1).addQuantiles(1, new double[] { -3, -2, -1, 0, 1, 2, 3 });
    //p2.getPlot(1).addLayer(new DensityLayerPlot(p2.getPlot(1), 1, new double[] { -.1, 0, .1 }));

View Full Code Here

Examples of org.math.plot.Plot2DPanel.addScatterPlot()

        XYZ[j][0] = /*1 + */Math.random();
        XYZ[j][1] = /*100 * */Math.random();
        sXYZ[j] = /*100 * */Math.random();
      }

      p2.addScatterPlot("toto" + i, XYZ);
    }
    p2.getPlot(0).addGaussQuantiles(0, sXYZ);
    p2.getPlot(1).addGaussQuantiles(1, 0.1);

    new FrameView(p2).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here

Examples of org.math.plot.Plot3DPanel.addScatterPlot()

      XYZ2[j][0] = Math.random();
      XYZ2[j][1] = Math.random();
      XYZ2[j][2] = "" + ((char) ('a' + j));
    }

    p.addScatterPlot("toto", p.mapData(XYZ));
    p.addScatterPlot("toti", p.mapData(XYZ2));
    p.setAxisScale(1, "log");

    new FrameView(p).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    HashMap<String, Double> arg = p.getAxis(2).getStringMap();
View Full Code Here

Examples of org.math.plot.Plot3DPanel.addScatterPlot()

      XYZ2[j][1] = Math.random();
      XYZ2[j][2] = "" + ((char) ('a' + j));
    }

    p.addScatterPlot("toto", p.mapData(XYZ));
    p.addScatterPlot("toti", p.mapData(XYZ2));
    p.setAxisScale(1, "log");

    new FrameView(p).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    HashMap<String, Double> arg = p.getAxis(2).getStringMap();
    Collection<Double> ouch = arg.values();
View Full Code Here

Examples of scalaSci.math.plot.Plot2DPanel.addScatterPlot()

        XYZ[j][0] = Math.random();
        XYZ[j][1] = Math.random();
        sXYZ[j] = Math.random();
      }

      p2.addScatterPlot("toto" + i, XYZ);
    }
    p2.getPlot(0).addGaussQuantiles(1, sXYZ);
    p2.getPlot(1).addGaussQuantiles(1, 0.1);

               
View Full Code Here

Examples of scalaSci.math.plot.Plot2DPanel.addScatterPlot()

    double[][] XYZ = new double[10][2];
    for (int j = 0; j < XYZ.length; j++) {
      XYZ[j][0] = /*1 + */Math.random();
      XYZ[j][1] = /*100 * */10 * Math.random();
    }
  p2.addScatterPlot("toto" + i, XYZ);
  }
  p2.getPlot(0).addQuantiles(1, new double[] {/*-3,-2,*/-4, -2, -0.5, 0, 0.5, 2, 4 /*,2,3*/});
  p2.getPlot(1).addQuantiles(1, new double[] { -3, -2, -1, 0, 1, 2, 3 });
    //p2.getPlot(1).addLayer(new DensityLayerPlot(p2.getPlot(1), 1, new double[] { -.1, 0, .1 }));

View Full Code Here

Examples of scalaSci.math.plot.Plot2DPanel.addScatterPlot()

      double[][] XYZ = new double[10][2];
      for (int j = 0; j < XYZ.length; j++) {
        XYZ[j][0] = /*1 + */Math.random();
        XYZ[j][1] = /*100 * */Math.random();
      }
      p2.addScatterPlot("toto" + i, XYZ);
    }
    p2.addQuantiletoPlot(0, 1, 1.0, true, 0.2);
    new FrameView(p2).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
}
View Full Code Here

Examples of scalaSci.math.plot.Plot3DPanel.addScatterPlot()

      XYZ2[j][0] = Math.random();
      XYZ2[j][1] = Math.random();
      XYZ2[j][2] = "" + ((char) ('a' + j));
    }

    p.addScatterPlot("toto", p.mapData(XYZ));
    p.addScatterPlot("toti", p.mapData(XYZ2));
    p.setAxisScale(1, "log");
                p.setAxisLabel(0, "Axis 0");
                p.setAxisLabels("sterg X", "sterg Y", "sterg Z");
View Full Code Here

Examples of scalaSci.math.plot.Plot3DPanel.addScatterPlot()

      XYZ2[j][1] = Math.random();
      XYZ2[j][2] = "" + ((char) ('a' + j));
    }

    p.addScatterPlot("toto", p.mapData(XYZ));
    p.addScatterPlot("toti", p.mapData(XYZ2));
    p.setAxisScale(1, "log");
                p.setAxisLabel(0, "Axis 0");
                p.setAxisLabels("sterg X", "sterg Y", "sterg Z");

    new FrameView(p).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.