mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-30 07:52:11 +00:00
fixing travis
This commit is contained in:
12
examples/python_fill_cpp.py
Normal file
12
examples/python_fill_cpp.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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(h.axis(1).bins):
|
||||
for ix in range(h.axis(0).bins):
|
||||
print "%3i" % h.value(ix, iy),
|
||||
print
|
||||
Reference in New Issue
Block a user