histogram/examples/guide_axis_with_uoflow_off.cpp
2018-07-21 17:27:18 +02:00

16 lines
322 B
C++

//[ guide_axis_with_uoflow_off
#include <boost/histogram.hpp>
namespace bh = boost::histogram;
int main() {
// create a 1d-histogram for dice throws with integer values from 1 to 6
auto h = bh::make_static_histogram(
bh::axis::integer<>(1, 7, "eyes", bh::axis::uoflow::off));
// do something with h
}
//]