To hold window of plots open

hello experts
I’m running this code to plot of ratio histogram, but the plot only flash and closed, so i cant see the plot. is there any way to hold the plot window open so i can check the plot? the script is here: (2.5 KB)

Hi @yiruole,

The easiest way is to run the script with python -i such that the interpreter doesn’t close at the end of the script.

Another way I somtimes use is to put input() after drawing the canvas in the Python script, such that it only exits/continues with I hit enter.


1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.