Summary

In this chapter, we covered details on event systems, event loops, and how these relate to matplotlib. We also covered details on event types in matplotlib and ways to employ them to build interactive plots

The first area comprised of the background, which helped us appreciate the inner workings of matplotlib's event system. It also armed us with the knowledge that avoids confusion between the GUI toolkit event loops that matplotlib ties to and the matplotlib event loops that power the ability of the canvas to respond to the events on plots.

There are even more examples of plot interaction in the notebook for this chapter. So, be sure to check out the repository for extra goodies.

In the next chapter, we will take a new direction. Instead ...

Get Mastering matplotlib now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.