Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Matplotlib

You're reading from   Mastering Matplotlib A practical guide that takes you beyond the basics of matplotlib and gives solutions to plot complex data

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781783987542
Length 292 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Up to Speed FREE CHAPTER 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 handling

We now have a good background for some practical work with matplotlib events. We are now ready to explore the nitty-gritty. Let's begin with the list of events that matplotlib supports:

Event name

Class

Description

button_press_event

MouseEvent

The mouse button is pressed

button_release_event

MouseEvent

The mouse button is released

draw_event

DrawEvent

The canvas draw occurs

key_press_event

KeyEvent

A key is pressed

key_release_event

KeyEvent

A key is released

motion_notify_event

MouseEvent

Motion of the mouse

pick_event

PickEvent

An object in the canvas is selected

resize_event

ResizeEvent

The figure canvas is resized

scroll_event

MouseEvent

The scroll wheel of the mouse is rolled

figure_enter_event

LocationEvent

The mouse enters a figure

figure_leave_event

LocationEvent

The mouse leaves a figure

axes_enter_event

LocationEvent

The mouse enters an axes object

axes_leave_event

LocationEvent

The mouse leaves an axes object

Note...

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 $19.99/month. Cancel anytime