Examples of Plot


Examples of org.jfree.chart.plot.Plot

    /**
     * Rescales the axis to ensure that all data is visible.
     */
    public void autoAdjustRange() {

        Plot plot = getPlot();
        if (plot == null) {
            return// no plot, no data.
        }

        if (plot instanceof ValueAxisPlot) {
View Full Code Here

Examples of org.jfree.chart.plot.Plot

        textAnchor = TextAnchor.TOP_LEFT;
      else if ("TOP_RIGHT".equals(str))
        textAnchor = TextAnchor.TOP_RIGHT;
    }

    Plot plot = ((JFreeChart) chart).getPlot();
        if (plot instanceof XYPlot) {
      XYTextAnnotation anno = drawArrow
                  ? new XYPointerAnnotation(text, x, y, arrowAngle)
                  : new XYTextAnnotation(text, x, y);
      anno.setPaint(textPaint);
View Full Code Here

Examples of org.math.plot.plots.Plot

        repaint();
    }

    public void setAutoBounds() {
        if (plots.size() > 0) {
            Plot plot0 = this.getPlot(0);
            base.setRoundBounds(Array.min(plot0.getData()), Array.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(Array.min(ploti.getData()));
            base.includeInBounds(Array.max(ploti.getData()));
        }
        resetBase();
        repaint();
    }
View Full Code Here

Examples of org.math.plot.plots.Plot

        repaint();
    }

    public void setAutoBounds(int axe) {
        if (plots.size() > 0) {
            Plot plot0 = this.getPlot(0);
            base.setRoundBounds(axe, Array.min(plot0.getData())[axe], Array.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, Array.min(ploti.getData())[axe]);
            base.includeInBounds(axe, Array.max(ploti.getData())[axe]);
        }
        resetBase();
        repaint();
    }
View Full Code Here

Examples of plot.Plot

    Timer event = new Timer("event");
    event.schedule(eventScheduler, 0, 100);
   
    // Plot data
    Plot plot = new Plot("Cadburys");
    plot.pack();
    RefineryUtilities.centerFrameOnScreen(plot);
    plot.setVisible(true);
 
View Full Code Here

Examples of ptolemy.plot.Plot

    /** Create a new plot. In this base class, it is an instance of Plot.
     *  In derived classes, it can be classes derived from Plot.
     *  @return A new plot object.
     */
    protected PlotBox _newPlot() {
        return new Plot();
    }
View Full Code Here

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

Examples of scalaSci.math.plot.plots.Plot

  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

Examples of scalaSci.math.plot.plots.Plot

  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

Examples of scalaSci.math.plot.plots.Plot

    // 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
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.