Package scalaSci.math.plot

Examples of scalaSci.math.plot.Plot2DPanel


  }

  public static void main(String[] args) {
    double[] sXYZ = null;

    Plot2DPanel p2 = new Plot2DPanel();
    for (int i = 0; i < 2; i++) {
      double[][] XYZ = new double[10][2];
      sXYZ = new double[10];
      for (int j = 0; j < XYZ.length; j++) {
        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);

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


    public double[][] getData() {
        return null;//new double[][] { sigma };
    }

    public static void main(String[] args) {
  Plot2DPanel p2 = new Plot2DPanel();
  for (int i = 0; i < 2; i++) {
    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 }));

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

    new FrameView(p).setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }

*/
  public static void main(String[] args) {
    Plot2DPanel p = new Plot2DPanel();

        int N=8;
    double[][] cloud = new double[1000][2];
    for (int i = 0; i < cloud.length; i++) {
      cloud[i][0] = N * Math.exp(Math.random() + Math.random());
      cloud[i][1] = N * Math.exp(Math.random() + Math.random());
    }
    p.addCloudPlot("cloud", Color.RED, cloud, N, N);

    double[][] cloud2 = new double[1000][2];
    for (int i = 0; i < cloud2.length; i++) {
      cloud2[i][0] = 2 + Math.random() + Math.random();
      cloud2[i][1] = 2 + Math.random() + Math.random();
    }
    p.addCloudPlot("cloud2", Color.GREEN, cloud2, 2, 2);

    p.setLegendOrientation(PlotPanel.SOUTH);
    new FrameView(p).setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
  }
View Full Code Here

         new FrameView(p2)
       
        
         */
  public static void main(String[] args) {
    Plot2DPanel p2 = new Plot2DPanel();
    for (int i = 0; i < 1; i++) {
      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

TOP

Related Classes of scalaSci.math.plot.Plot2DPanel

Copyright © 2018 www.massapicom. 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.