public static PlotCanvas plot ( double [ ] data ) { double [ ] lowerBound = { 0 , Math . min ( data ) } ; double [ ] upperBound = { 1 , Math . max ( data ) } ; PlotCanvas canvas = new PlotCanvas ( lowerBound , upperBound ) ; canvas . add ( new BoxPlot ( data ) ) ; canvas . getAxis ( 0 ) . setGridVisible ( false ) ; canvas . getAxis ( 0 ) . setLabelVisible ( false ) ; return canvas ; }
Create a plot canvas with the box plot of given data .