# Histogram window disappears

**URL:** <https://root-forum.cern.ch/t/histogram-window-disappears/32224>\
**Category:** Newbie\
**Created:** [January 9, 2019, 2:53pm UTC](https://root-forum.cern.ch/t/histogram-window-disappears/32224 "2019-01-09T14:53:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksaoucha](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/c4cdca/32.png) [@ksaoucha](https://root-forum.cern.ch/u/ksaoucha)\
**Post date:** [January 9, 2019, 2:53pm UTC](https://root-forum.cern.ch/t/histogram-window-disappears/32224/1 "2019-01-09T14:53:36Z")

</div>

Hi,

I want to draw a histogram on a python script, so I do:

histogram.Draw()

However when I run the script on the terminal, the window showing the plot disappears after a second. Anyone who knows how to fix it? Thanks!

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [January 9, 2019, 3:23pm UTC](https://root-forum.cern.ch/t/histogram-window-disappears/32224/2 "2019-01-09T15:23:29Z")

</div>

Hi @ksaoucha,

The window disappears because the Python process you launch terminates.

Try running Python with `python -i nameofyourscript.py`, so that the interpreter process stays alive.

Cheers,  
Enric

---

<div class="post-metadata">

**Author:** ![ksaoucha](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/c4cdca/32.png) [@ksaoucha](https://root-forum.cern.ch/u/ksaoucha)\
**Post date:** [January 9, 2019, 3:30pm UTC](https://root-forum.cern.ch/t/histogram-window-disappears/32224/3 "2019-01-09T15:30:18Z")

</div>

It works! Thank you so much!
