Showing histograms and array in JAS plotter, then do a fit in 2D
Code: "canvas2D_jas.py". Programming language: Python
DMelt Version 1. Last modified: 05/25/2016. License: Pro
https://datamelt.org/code/cache/canvas2D_jas_3012.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 java.util import *
from jhplot import *
h1 = H1D("1D histogram",100, -2, 2.0)
h2 = H2D("2D histogram",50, -2, 2.0,50,-2,2)
rand = Random()
for i in range(600):
h1.fill(rand.nextGaussian())
h2.fill(rand.nextGaussian()*2,rand.nextGaussian()*2)
p0=P0D("Normal distribution")
p0.randomNormal(1000,0.0,10.0)
c=HPlotJas("JAS",ArrayList([h1,h2,p0]))
You see the box below because you did not login.