<div dir="ltr"><div><div>Here is something I did several years ago to have reproducible interactivity for testing purposes. It was limited to GTK, and there are probably better ways to do it now, but it is something.<br><br><a href="http://matplotlib.1069221.n5.nabble.com/scripting-interaction-td28629.html">http://matplotlib.1069221.n5.nabble.com/scripting-interaction-td28629.html</a><br><br></div>Cheers!<br></div>Ben Root<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 9:11 AM, Thomas Caswell <span dir="ltr"><<a href="mailto:tcaswell@gmail.com" target="_blank">tcaswell@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 dir="ltr">See <a href="https://github.com/matplotlib/matplotlib/pull/8403" target="_blank">https://github.com/<wbr>matplotlib/matplotlib/pull/<wbr>8403</a> for one way to test interactivity.</div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Thu, Apr 13, 2017 at 4:53 AM Juan Nunez-Iglesias <<a href="mailto:jni.soma@gmail.com" target="_blank">jni.soma@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">



<div>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Hello,
<div><br></div>
<div>We just got an exciting PR in scikit-image to do manual image segmentation with matplotlib:</div>
<div><a href="https://github.com/scikit-image/scikit-image/pull/2584" target="_blank">https://github.com/scikit-<wbr>image/scikit-image/pull/2584</a><br></div>
<div><br></div>
<div>The manual_lasso_segmentation function in particular is astoundingly simple — a testament to the ease of use of the mpl interactive bindings. Thanks!</div>
<div><br></div>
<div>Because it relies on interactive clicking and click-and-dragging after a blocking call to plt.show(block=True), though, it’s tricky if not impossible to test. I’m wondering whether mpl has a testing framework for the interactive components?</div>
<div><br></div>
<div>Juan.</div>
<div><br></div>
<div>PS: Also, the layout of the undo button is a bit tricky… If you have any tips for that, we are all ears! =)</div>
</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br></div>
</div></div></div>

______________________________<wbr>_________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/matplotlib-<wbr>users</a><br>
</blockquote></div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/matplotlib-<wbr>users</a><br>
<br></blockquote></div><br></div>