<div dir="ltr"><div><div>As far as I can tell, the code you originally posted should work. I will note that calling "self.fig.colorbar()" at every tick of the timer is probably not a good idea. Instead, I would have the initial imshow() set with hard-coded mins and maxes so that you don't need to update the colorbar.<br><br></div>When doing embedding like this, you absolutely should avoid utilizing pyplot, because you may accidentally clash mpl's event loop with the gui's event loop. Which versions of matplotlib and wxWidgets are you using?<br><br></div>Ben Root<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 11, 2016 at 2:40 AM, eadsjr <span dir="ltr"><<a href="mailto:jeads442@gmail.com" target="_blank">jeads442@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On further research, I have found a variety of issues with using<br>
matplotlib.pyplot.pause(0), and can't recommend it for this purpose.<br>
matplotlib.pyplot.show() appears to perform the desired function and does<br>
not have as many side effects.<br>
<br>
To elaborate, I found that I was leaking memory, probably in 'paused<br>
sessions', for every additional plot displayed that way. This also increased<br>
the stack depth until it hit the python limit and crashed the program.<br>
matplotlib.pyplot.draw() has neither of these issues.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/Problem-with-set-array-function-tp39686p46632.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/Problem-with-set-array-function-tp39686p46632.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the matplotlib - users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</div></div></blockquote></div><br></div>