Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering matplotlib

You're reading from  Mastering matplotlib

Product type Book
Published in Jun 2015
Publisher
ISBN-13 9781783987542
Pages 292 pages
Edition 1st Edition
Languages
Authors (2):
Duncan M. McGreggor Duncan M. McGreggor
Profile icon Duncan M. McGreggor
Duncan M McGreggor Duncan M McGreggor
Profile icon Duncan M McGreggor
View More author details

Table of Contents (16) Chapters

Mastering matplotlib
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Up to Speed 2. The matplotlib Architecture 3. matplotlib APIs and Integrations 4. Event Handling and Interactive Plots 5. High-level Plotting and Data Analysis 6. Customization and Configuration 7. Deploying matplotlib in Cloud Environments 8. matplotlib and Big Data 9. Clustering for matplotlib Index

Event loops in matplotlib


In the chapter on matplotlib architecture, we mentioned the event loops that the GUI toolkits use and which are integrated with matplotlib. As you dig through the matplotlib libraries, you will eventually come across several mentions with regard to the event loops that are not from the GUI toolkits. So that we can better understand the difference between these and, more importantly, the event handling and user interaction with plots, we're going to spend some time learning more about these event loops in matplotlib.

Event-based systems

In general, event loops are part of a recurring set of patterns that are used together in various computing frameworks. Often, they comprise of the following:

  • An incoming event

  • A mechanism that is used to respond to an event

  • A looping construct (for example, the while loop, listener, and the message dispatch mechanism)

Event-based systems are typically asynchronous in nature, allowing events to be sent to the system and then responded to...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}