Package scalaSci.math.plot.plots

Examples of scalaSci.math.plot.plots.Plot


public void configCanvas() {
   JFrame configFrame = new JFrame("Figure configuration");
           
   JPanel configPanel = new JPanel();
           
            Plot  plotElems = plots.getFirst();
            JButton plotButton = new JButton("Setting Plot Color");
            configPanel.add(plotButton);
            plotButton.addActionListener(new ActionListener() {

            JRadioButton  rbFigs = new JRadioButton();
View Full Code Here


  repaint();
    }

    public void setAutoBounds() {
  if (plots.size() > 0) {
                    Plot plot0 = this.getPlot(0);
                    base.setRoundBounds(PArray.min(plot0.getData()), PArray.max(plot0.getData()));
  } else { // build default min and max bounds
            double[] min = new double[base.dimension];
            double[] max = new double[base.dimension];
            for (int i = 0; i < base.dimension; i++) {
  if (base.getAxeScale(i).equalsIgnoreCase(LINEAR)) {
                        min[i] = 0.0;
                        max[i] = 1.0;
  }
        else if (base.getAxeScale(i).equalsIgnoreCase(LOGARITHM)) {
  min[i] = 1.0;
  max[i] = 10.0;
  }
            }
  base.setRoundBounds(min, max);
  }
  for (int i = 1; i < plots.size(); i++) {
                    Plot ploti = this.getPlot(i);
                    base.includeInBounds(PArray.min(ploti.getData()));
                    base.includeInBounds(PArray.max(ploti.getData()));
  }
  resetBase();
  repaint();
    }
View Full Code Here

  repaint();
    }

    public void setAutoBounds(int axe) {
  if (plots.size() > 0) {
                    Plot plot0 = this.getPlot(0);
                    base.setRoundBounds(axe, PArray.min(plot0.getData())[axe], PArray.max(plot0.getData())[axe]);
  } else { // build default min and max bounds
            double min = 0.0;
            double max = 0.0;
            if (base.getAxeScale(axe).equalsIgnoreCase(LINEAR) | base.getAxeScale(axe).equalsIgnoreCase(STRINGS)) {
  min = 0.0;
  max = 1.0;
  }
            else if (base.getAxeScale(axe).equalsIgnoreCase(LOGARITHM)) {
  min = 1.0;
  max = 10.0;
  }
  base.setRoundBounds(axe, min, max);
  }

    for (int i = 1; i < plots.size(); i++) {
  Plot ploti = this.getPlot(i);
  base.includeInBounds(axe, PArray.min(ploti.getData())[axe]);
  base.includeInBounds(axe, PArray.max(ploti.getData())[axe]);
  }
        resetBase();
        repaint();
    }
View Full Code Here

    // draw plot
    grid.plot(draw);

    // for all the plots of this canvas
    for (int i = 0; i < plots.size(); i++) {
        Plot currentPlot = getPlot(i);
        currentPlot.plot(draw);
        //if (currentPlot instanceof  scalaSci.math.plot.plots.contourPlot)                            return;
        //if (linkedLegendPanel != null)
           // linkedLegendPanel.nonote(i);   // SOS-Sterg: uncommenting this causes a problem when GSci is called from Java
    }
View Full Code Here

TOP

Related Classes of scalaSci.math.plot.plots.Plot

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.