from jhplot import *
from java.awt import Color
from java.util import Random
c1=HPlotXYZ("test",600,400)
c1.setGTitle("3D function")
c1.visible()
c1.setTickDecimalAll(1)
hh=H2D("Histogram",20,-2,2,20,-2,2)
rand = Random()
# fill histogram
for i in range(10000):
hh.fill(rand.nextGaussian(),rand.nextGaussian())
c1.setContourColor3D()
c1.addAsSurface(hh)
c1.update()
Ads help maintain this website.