mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-30 20:02:13 +00:00
12 lines
329 B
Python
12 lines
329 B
Python
import histogram as bh
|
|
import cpp_filler
|
|
|
|
h = bh.histogram(bh.axis.regular(5, -5, 5, "x"),
|
|
bh.axis.regular(5, -5, 5, "y"))
|
|
|
|
cpp_filler.process(h) # histogram is filled with input values in c++
|
|
|
|
for iy in range(len(h.axis(1))):
|
|
for ix in range(len(h.axis(0))):
|
|
print "%3i" % h.value(ix, iy),
|
|
print |