OSX 10.5 event.key bug

in matplotlib under 10.5 Mac OS X, if the event.key
is 'g' or 'l' then grid plotting ('g') or log plotting
('l') is turned on

is this a known bug? any workarounds?

J

It's a feature, not a bug. Do you have a use case where this is an
annoyance -- we could probably disable it under certain conditions.

JDH

···

On Tue, Sep 16, 2008 at 8:03 PM, James Schombert <jschombe@...2158...> wrote:

in matplotlib under 10.5 Mac OS X, if the event.key
is 'g' or 'l' then grid plotting ('g') or log plotting
('l') is turned on

is this a known bug? any workarounds?

Using matplotlib 0.98.5 on OSX 10.5, the following error
occurs for many key_press events using the standard
connect class - letter such as c,v,s etc (and most important, backspace)

Exception in Tkinter callback
Traceback (most recent call last):
   File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py",
line 1403, in __call__
     return self.func(*args)
   File "/Library/Python/2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 312, in
key_press
     FigureCanvasBase.key_press_event(self, key, guiEvent=event)
   File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1122, in
key_press_event
     self.callbacks.process(s, event)
   File "/Library/Python/2.5/site-packages/matplotlib/cbook.py", line 155, in process
     func(*args, **kwargs)
   File "/Library/Python/2.5/site-packages/matplotlib/backend_bases.py", line 1626, in key_press
     self.canvas.toolbar.back()
AttributeError: FigureCanvasTkAgg instance has no attribute 'toolbar'

would a full list of the "bad" keys help?

J