# What is the default bin width for Branch of tree

**URL:** <https://root-forum.cern.ch/t/what-is-the-default-bin-width-for-branch-of-tree/40520>\
**Category:** Newbie\
**Tags:** tree\
**Created:** [July 20, 2020, 2:52am UTC](https://root-forum.cern.ch/t/what-is-the-default-bin-width-for-branch-of-tree/40520 "2020-07-20T02:52:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tingting](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58f4c7/32.png) [@Tingting](https://root-forum.cern.ch/u/Tingting)\
**Post date:** [July 20, 2020, 2:52am UTC](https://root-forum.cern.ch/t/what-is-the-default-bin-width-for-branch-of-tree/40520/1 "2020-07-20T02:52:56Z")

</div>

Dear Root Users，developer，and friends：  
I have a question we have filled different variables in tree, When we use “TBrowser” view the distribution of one variable ，What is the default bin width for this Branch of tree？How is the default bin width set？

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [July 20, 2020, 1:53pm UTC](https://root-forum.cern.ch/t/what-is-the-default-bin-width-for-branch-of-tree/40520/2 "2020-07-20T13:53:53Z")

</div>

Hi,  
When plotting histogram from a TTree the bin width is automatically computed from the range of the variables and using a default value of 100 bins. You can however, create first an empty histogram with bin width and range as you want and then later fill it, for example with `TTree::Draw`

Lorenzo
