histogram/examples/guide_axis_with_labels.cpp
Hans Dembinski ff97700470 * finishing the user guide
* get master badges back
2019-02-24 22:14:30 +01:00

22 lines
567 B
C++

// Copyright 2015-2018 Hans Dembinski
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
//[ guide_axis_with_labels
#include <boost/histogram.hpp>
int main() {
using namespace boost::histogram;
// create a 2d-histogram with an "age" and an "income" axis
auto h = make_histogram(axis::regular<>(20, 0.0, 100.0, "age in years"),
axis::regular<>(20, 0.0, 100.0, "yearly income in 1000 EUR"));
// do something with h
}
//]