require 'java'
# print $CLASSPATH
# require 'lib/system/jhplot.jar'
java_import Java::jhplot.HPlot
java_import Java::jhplot.H1D
c1=HPlot.new()
c1.setGTitle("Global labels: F_{2}, x_{γ} #bar{p}p F_{2}^{c#bar{c}}"); #put title
c1.visible()
c1.setAutoRange()
h1 = H1D.new("Simple1",100, -2, 2.0)
rand =java.util. Random.new()
print "Use of for loop in JRuby \n"
for i in 1..100
puts "Test Value is => #{i}"
h1.fill(rand.nextGaussian())
end
c1.draw(h1)