Hello,

I want to dynamically update a plot of the rate at which a neural network is
learning a function. Ideally, my python program would open up a window and
update the plot inside of it after every training epoch.

I have written the following code to do so:

        pyplot.title('Learning Curve')
        pyplot.xlabel('Epoch #')
        pyplot.ylabel('Success rate (%)')

        pyplot.plot(range(1, len(rates)+1), rates, 'r-')

        pyplot.draw()

Note that I am also calling pyplot.ion() at the start of the program.

This *mostly* works. However, I run into a strange issue. If the figure
window is minimized/hidden, when I open it up, nothing shows up in it (the
content is only grey). The plot will appear only if the window is
maximized/visible when the plotting occurs. If I again minimize the window
after the plot was drawn, it goes back to being gray.
-- 
View this message in context: 
http://www.nabble.com/Plot-Updating-Strangeness-tp25648628p25648628.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to