Histogram as a 3D surface in jzy3d + animation
Source code name: "histo3D_surface_jzy3d.py"
Programming language: Python
Topic: Histograms/2D
DMelt Version 1.5. Last modified: 05/19/2016. License: Pro
https://datamelt.org/code/cache/histo3D_surface_jzy3d_3776.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


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,-20,20)
rand = Random()
for i in range(10000):
      hh.fill(rand.nextGaussian(),5*rand.nextGaussian())

c1.setLegendBar()
c1.addAsSurface(hh)
c1.animate()
c1.update()



You see the box below because you did not login.