From 87c2d1288f54e07f6df6ebc9083949ff28ee19fe Mon Sep 17 00:00:00 2001 From: cyrraz Date: Wed, 27 Mar 2024 14:43:21 +0900 Subject: [PATCH] move note in doc --- docs/basics/1d_hist.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/basics/1d_hist.rst b/docs/basics/1d_hist.rst index 51b72ecc..d728cea3 100644 --- a/docs/basics/1d_hist.rst +++ b/docs/basics/1d_hist.rst @@ -267,11 +267,6 @@ The function :func:`make_hist() ` returns a a The examples below show how to create a histogram with a category axis in ``boost_histogram`` and plot it with ``plothist``. -.. note:: - When we create the histograms in the examples below, we use the argument ``storage=bh.storage.Weight()``. - This is because the functions in ``plothist`` assume histograms with a storage that supports weighted data, where the variance of each bin is tracked (more details `here < https://boost-histogram.readthedocs.io/en/latest/user-guide/storage.html#weight>`_ and `there `_). - When creating histograms with regular or variable axes with the function :func:`make_hist() `, as in most of the above examples, the storage is automatically set to ``bh.storage.Weight()``, so the user does not have to worry about it. - Integer category ---------------- @@ -284,6 +279,12 @@ Integer category :alt: Integer category plot :width: 500 +.. note:: + When we create the histograms in this example, we use the argument ``storage=bh.storage.Weight()``. + This is because the functions in ``plothist`` assume histograms with a storage that supports weighted data, where the variance of each bin is tracked (more details `here < https://boost-histogram.readthedocs.io/en/latest/user-guide/storage.html#weight>`_ and `there `_). + When creating histograms with regular or variable axes with the function :func:`make_hist() `, as in most of the previous examples, the storage is automatically set to ``bh.storage.Weight()``, so the user does not have to worry about it. + + String category ---------------