Re: [Matplotlib-users] refresh a matplotlib plot when reruning a script

2014-06-28 Thread Eric Firing
On 2014/06/27, 9:59 AM, zunbeltz wrote: > I have a script that fetchs data from a database and plot using > something similar to > > fig, (ax1, ax3) = plt.subplots(2, 1, sharex=False, sharey=False, num=fignum) > ax1.errorbar(...) > title(...) > ax2 = ax1.twiny() > ax4 = ax2.twiny() > ... > plt.lege

[Matplotlib-users] refresh a matplotlib plot when reruning a script

2014-06-27 Thread zunbeltz
I have a script that fetchs data from a database and plot using something similar to fig, (ax1, ax3) = plt.subplots(2, 1, sharex=False, sharey=False, num=fignum) ax1.errorbar(...) title(...) ax2 = ax1.twiny() ax4 = ax2.twiny() ... plt.legent() plt.draw() Then, I call this script with plt.ion() a