Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Mastering Matplotlib
  • Toc
  • feedback
Mastering Matplotlib

Mastering Matplotlib

By : Duncan M. McGreggor, Duncan M McGreggor
3.5 (8)
close
Mastering Matplotlib

Mastering Matplotlib

3.5 (8)
By: Duncan M. McGreggor, Duncan M McGreggor

Overview of this book

If you are a scientist, programmer, software engineer, or student who has working knowledge of matplotlib and now want to extend your usage of matplotlib to plot complex graphs and charts and handle large datasets, then this book is for you.
Table of Contents (11 chapters)
close
10
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...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete