How to update existing matplotlib (python) figures with sublime text -


i've been using iep pyzo before trying out sublime text (st). there annoying behaviour st iep doesn't have.

in iep, matlab or octave, editor , interactive console talk each other. typically if compute some_stuff , plot in script, after execution of script can go console , check values:

print some_stuff[0:10]

or modify plot:

plt.whatever()

which update figure. if run script several times different parameters, figure updated. when in st, repl, after execution of script nothing left, can't access some_stuff[0:10] repl. similarly, can't modify figure. , if run script several times different parameters, new figure generated in new window each time instead of updating existing figure.

is there easy work around this? thanks!

how saving figure file plt.savefig("fig.png")? if open file image viewer updated after running program.


Comments