/** * Plot the given data to the given image. * * @param image * The image to plot to * @param data * The data to plot */ public static void plotBars(final MBFImage image, final double[] data) { new BarVisualisationBasic(image).plotBars(data); }
/** * 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 BarVisualisationBasic bv = new BarVisualisationBasic( 1000, 600 ); bv.setData( data ); bv.showWindow( "Bar Visualisation Demo" ); } }