[Matplotlib-users] Testing of interactive functions

Thomas Caswell tcaswell at gmail.com
Thu Apr 13 09:11:46 EDT 2017

See https://github.com/matplotlib/matplotlib/pull/8403 for one way to test

On Thu, Apr 13, 2017 at 4:53 AM Juan Nunez-Iglesias <jni.soma at gmail.com>

> Hello,
> We just got an exciting PR in scikit-image to do manual image segmentation
> with matplotlib:
> https://github.com/scikit-image/scikit-image/pull/2584
> The manual_lasso_segmentation function in particular is astoundingly
> simple — a testament to the ease of use of the mpl interactive bindings.
> Thanks!
> 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?
> Juan.
> PS: Also, the layout of the undo button is a bit tricky… If you have any
> tips for that, we are all ears! =)
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170413/b7604bfd/attachment.html>

More information about the Matplotlib-users mailing list