On Saturday, October 29, 2011, Antoine Levitt <antoine.levitt@gmail.com> wrote:
> Hi,
>
> Is there any doc of the various bindable actions? I only found
> http://matplotlib.sourceforge.net/users/customizing.html, and I'm not
> sure all of them are in there. In particular, I'd like a simple "q"
> keybinding to close the window, and ideally a way to run arbitrary
> python code.
>
> Antoine
>

I don't think there is a document for the default keymaps, and there has been some talk about redoing default keybindings, because they are so hidden and varies from backend to backend.

In the meantime, I would suggest checking out the "event handeling" section of the examples page. You can have a function that you attach to the "key_press_event", which takes an "event" object as an argument.  That event object has the key that was pressed.  You can then have an if...elif...else statement for all the keys and actions, or have a dictionary of key-action pairs.

Hope that helps!
Ben Root