
from java.awt import Color
from java.util import Random
from jhplot  import H1D,SHPlot

c1 = SHPlot.getCanvas()
c1.visible()
c1.setAutoRange()
c1.setGTitle("Global labels: F_{2},  x_{&gamma;}  #bar{p}p F_{2}^{c#bar{c}}"); #put title

h1 = H1D("Simple1",20, -2.0, 2.0)
rand = Random()
# fill histogram
for i in range(2000):
      h1.fill(rand.nextGaussian())      

c1.draw(h1)
