from java.util import Random
from jhplot  import H1D,HPlot

h1 = H1D("1D Histogram",12,-2, 2 )

rand = Random()
for i in range(3000):
      h1.fill(rand.nextGaussian())

c1 = HPlot()
c1.setGrid(0,True)
c1.setGrid(1,True)
c1.visible(1)
c1.setAutoRange()
h1.setFill(1)
c1.draw(h1)

