Skip to content

Commit 438defc

Browse files
couetferdymercury
andauthored
Fix an histogramming example (#1154)
* Fix an histogramming example * Update manual/histograms/index.md Co-authored-by: ferdymercury <[email protected]> --------- Co-authored-by: ferdymercury <[email protected]>
1 parent 9078992 commit 438defc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manual/histograms/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ For creating variable bins histograms:
128128

129129
{% highlight C++ %}
130130
double binEdges[] = { 0.0, 0.2, 0.5, 1., 2., 4. };
131-
TH1* h1 = new TH1D("h1", "h1 title", 6, binEdges );
132-
TH2* h2 = new TH2D("h2", "h2 title", 6, binEdges , 30, -1.5, 3.5);
131+
TH1* h1 = new TH1D("h1", "h1 title", 5, binEdges );
132+
TH2* h2 = new TH2D("h2", "h2 title", 5, binEdges , 30, -1.5, 3.5);
133133
{% endhighlight %}
134-
note that the array of bin edges should be of size `nbins+1` , since it contains the lower and upper range axis values.
134+
note that the array of bin edges should be of size `nbins+1`, since it contains the lower and upper range axis values.
135135

136136
For creating a profile histograms passing the range in the profiled variable (e..g .Y for a `TProfille`) is optional:
137137
{% highlight C++ %}

0 commit comments

Comments
 (0)