
"""
This class implements a histogram that adapts to an unknown data distribution.
Look at  the <a href="https://datamelt.org/api/doc.php/jhplot/H1DA">H1DA class</a>
You will need to convert it to P1D to show it

"""
 
from java.awt import Color,Font
from java.util import Random
from jhplot import H1DA 

h1 = H1DA()
rand = Random()
for i in range(1000):
      h1.fill(rand.nextGaussian())

print h1.toString()

