public void show() {
        XYSeries series = new XYSeries("Amplitude Maxes");
        for (int i = 0; i < maxes.size(); i++) {
                series .add(new XYDataItem((Number) (i * granularity), (Number) maxes.get(i)));
        }

        LineChartFrame
            frame = new LineChartFrame("Amplitude Maxes", "Time", "Amplitude Maxes", series);
        frame.pack();
        RefineryUtilities.centerFrameOnScreen(frame);
        frame.setVisible(true);
    }