# Creating Histogram from Python

**URL:** <https://root-forum.cern.ch/t/creating-histogram-from-python/35912>\
**Category:** Newbie\
**Created:** [September 6, 2019, 6:25pm UTC](https://root-forum.cern.ch/t/creating-histogram-from-python/35912 "2019-09-06T18:25:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![usernew](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/ccd318/32.png) [@usernew](https://root-forum.cern.ch/u/usernew)\
**Post date:** [September 6, 2019, 6:25pm UTC](https://root-forum.cern.ch/t/creating-histogram-from-python/35912/1 "2019-09-06T18:25:40Z")

</div>

Hello, I am trying to create a histogram using Root from Python. However, I am getting this warning:  
Execution of your code was aborted.  
ROOT\_prompt\_2:1:1: warning: null passed to a callee that requires a non-null argument [-Wnonnull]  
histo-\>Draw()  
^ ~~~~

There is alot of other outputs above the warning, but I am not sure if it meant much. Do you know how I can fix this warning.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [September 8, 2019, 6:30pm UTC](https://root-forum.cern.ch/t/creating-histogram-from-python/35912/2 "2019-09-08T18:30:49Z")

</div>

The variable `histo` is invalid: the pointer is NULL.
