from java.util import Random
from jhplot import F2D,H2D,HPlot3D
c1 = HPlot3D("Canvas",600,400,2,1)
c1.visible(1)
c1.setGTitle("HPlot3D canvas tests")
rand =Random()
h1=H2D("Test1",30,-4.5, 4.5, 30, -4.0, 4.0)
for i in range(1000):
h1.fill(rand.nextGaussian(),0.5*rand.nextGaussian())
c1.cd(1,1)
c1.setBars()
c1.draw(h1)
c1.setScaling(8)
c1.setRotationAngle(10)
c1.update()
c1.cd(2,1)
c1.setSurface()
c1.draw(h1)
Ads help maintain this website.