Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bug fix
  • Loading branch information
fariza committed Jan 22, 2014
commit 560868a551645626f64449fbe64b4c9dd3e2fb49
1 change: 1 addition & 0 deletions examples/user_interfaces/navigation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import matplotlib
matplotlib.use('GTK3Cairo')
#matplotlib.rcParams['toolbar'] = 'None'
import matplotlib.pyplot as plt

fig = plt.figure()
Expand Down
3 changes: 1 addition & 2 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -3046,7 +3046,6 @@ def _get_cls_to_instantiate(self, callback_class):
return callback_class

def _key_press(self, event):

if event.key is None:
return

Expand All @@ -3055,7 +3054,7 @@ def _key_press(self, event):
instance = self._get_instance(self._toggled)
if self.keypresslock.isowner(instance):
instance.key_press(event)
return
return

name = self._keys.get(event.key, None)
if name is None:
Expand Down