<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 29, 2014 at 2:11 PM, Antonino Ingargiola <span dir="ltr"><<a href="mailto:tritemio@gmail.com" target="_blank">tritemio@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>def add_cursor(fig, ax):</div><div>    plt.close()</div><div></div></blockquote></div><br>Make sure you call close on the fig object, so you don't rely on the implicit state management that pyplot does...<br>

<br clear="all"><div><br></div>-- <br>Fernando Perez (@fperez_org; <a href="http://fperez.org" target="_blank">http://fperez.org</a>)<br>fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)<br>fernando.perez-at-berkeley: contact me here for any direct mail<br>


</div></div>