Package ptolemy.plot

Examples of ptolemy.plot.Plot.clear()


            _dataInputStream = new DataInputStream(in);
            _sound = new Audio(_dataInputStream);

            // Configure the plot.
            Plot plt = (Plot) plot;
            plt.clear(true);
            plt.setXRange(0, (_sound.size - 1) / 8000.0);
            plt.setXLabel("Time in seconds");
            plt.setYRange(-1.0, 1.0);

            double[] pltdata = _sound.toDouble(0);
View Full Code Here


        leftPlot.setSize(350, 300);

        File file = new File(".", "data.plt");

        try {
            rightPlot.clear(true);
            rightPlot.read(new FileInputStream(file));
        } catch (FileNotFoundException ex) {
            System.err.println("File not found: " + file + " : " + ex);
        } catch (IOException ex) {
            System.err.println("Error reading input: " + file + " : " + ex);
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.