# histogram(ds,binCount) assumes the output is mutable. randomSeed(5334) xx= append( randn(500)*1.5+5, randn(800)*1.0+2 ) setLayout(2,2) #dom.options.autolayout= False plot( 0, histogram( xx, 50 ) ) plot( 1, histogram( xx, -2, 10, 0.5 ) ) plot( 2, autoHistogram( xx ) ) yy= append( randn(500)*1.5+5, randn(800)*1.0+2 ) plot( 3, histogram2d( xx, yy, [24,24], dataset( [-2,10] ), dataset( [-2,10] ) ) ) writeToPng('test037_histogram.png')