put axis in extra namespace, put python axis objects in axis submodule

This commit is contained in:
Hans Dembinski
2017-06-04 11:53:15 +02:00
parent 6ec89079e0
commit ef4898ddc2
15 changed files with 486 additions and 463 deletions

View File

@@ -7,8 +7,8 @@ int main() {
random::mt19937 gen;
random::normal_distribution<> norm;
auto h = histogram::make_static_histogram(
histogram::regular_axis<>(100, -5, 5, "x"),
histogram::regular_axis<>(100, -5, 5, "y")
histogram::axis::regular<>(100, -5, 5, "x"),
histogram::axis::regular<>(100, -5, 5, "y")
);
for (int i = 0; i < 1000; ++i)
h.fill(norm(gen), norm(gen));