Files
LPP/examples/test_histo.py
danielque 539fd060c2 python 3 compatibility for examples/*.py files
add from __future__ import
print statement -> print() function
xrange -> range
map() -> list(map())
range() -> list(range())
StandardError -> Exception
2023-08-10 13:25:36 +02:00

14 lines
290 B
Python

# simple test of histo tool
# requires files/dump.kinase
d = dump("files/dump.kinase")
h = histo(d)
x,y = h.compute('x',25)
g = gnu()
g.xtitle("X position")
g.ytitle("Particle Count")
g.title("Histogram of Particle Density")
g.plot(x,y)
print("all done ... type CTRL-D to exit Pizza.py")