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!
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!
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
It works! Thank you so much!