/** * Shows a basic bar visualisation. * * @param args * The bar visualisation. */ public static void main(final String[] args) { final int nPoints = 10; final double[] data = new double[nPoints]; for (int i = 0; i < nPoints; i++) data[i] = nPoints * (Math.random() * 2 - 1); final BarVisualisation bv = new BarVisualisation(1000, 600); bv.setDrawValues(true); bv.setData(data); bv.setTransformer(new LabelTransformer() { @Override public String transform(final double value) { return String.format("%2.2f", value); } }); bv.showWindow("Bar Visualisation Demo"); } }
bv.setDrawValues(true); bv.fixAxis( 250 ); bv.showWindow("MFCCs");
bv.setDrawValues(true); bv.fixAxis( 250 ); bv.showWindow("MFCCs");