]>
Commit | Line | Data |
---|---|---|
92f5a8d4 TL |
1 | // Copyright 2015-2018 Hans Dembinski |
2 | // | |
3 | // Distributed under the Boost Software License, Version 1.0. | |
4 | // (See accompanying file LICENSE_1_0.txt | |
5 | // or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | ||
7 | //[ guide_axis_with_labels | |
8 | ||
9 | #include <boost/histogram.hpp> | |
10 | ||
11 | int main() { | |
12 | using namespace boost::histogram; | |
13 | ||
14 | // create a 2d-histogram with an "age" and an "income" axis | |
15 | auto h = make_histogram(axis::regular<>(20, 0.0, 100.0, "age in years"), | |
16 | axis::regular<>(20, 0.0, 100.0, "yearly income in Thousands")); | |
17 | ||
18 | // do something with h | |
19 | } | |
20 | ||
21 | //] |