mirror of
https://github.com/boostorg/histogram.git
synced 2025-05-11 05:07:58 +00:00
Remove the "x" label for simplicity
This commit is contained in:
parent
6c268109a3
commit
419280c0fc
@ -33,10 +33,8 @@ Example: Make and fill a 1d-histogram ([try it live on Wandbox](https://wandbox.
|
|||||||
int main() {
|
int main() {
|
||||||
using namespace boost::histogram;
|
using namespace boost::histogram;
|
||||||
|
|
||||||
// make 1d histogram with 4 regular bins from 0 to 2 on an axis called "x"
|
// make 1d histogram with 4 regular bins from 0 to 2
|
||||||
auto h = make_histogram(
|
auto h = make_histogram( axis::regular<>(4, 0.0, 2.0) );
|
||||||
axis::regular<>(4, 0.0, 2.0, "x")
|
|
||||||
);
|
|
||||||
|
|
||||||
// push some values into the histogram
|
// push some values into the histogram
|
||||||
for (auto value : { 0.4, 1.1, 0.3, 1.7, 10. })
|
for (auto value : { 0.4, 1.1, 0.3, 1.7, 10. })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user