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

Skip to content

Commit 5c1c057

Browse files
cimarronmCimarron Mittelsteadt
authored and
Cimarron Mittelsteadt
committed
Updated default quit keymap to include cmd+w so people running on OS X would have a native cmd+w to close the window.
1 parent eab2a9e commit 5c1c057

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def __call__(self, s):
750750
'keymap.pan': ['p', validate_stringlist],
751751
'keymap.zoom': ['o', validate_stringlist],
752752
'keymap.save': [('s', 'ctrl+s'), validate_stringlist],
753-
'keymap.quit': [('ctrl+w', ), validate_stringlist],
753+
'keymap.quit': [('ctrl+w', 'cmd+w'), validate_stringlist],
754754
'keymap.grid': ['g', validate_stringlist],
755755
'keymap.yscale': ['l', validate_stringlist],
756756
'keymap.xscale': [['k', 'L'], validate_stringlist],

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ text.hinting_factor : 8 # Specifies the amount of softness for hinting in the
432432
#keymap.pan : p # pan mnemonic
433433
#keymap.zoom : o # zoom mnemonic
434434
#keymap.save : s # saving current figure
435-
#keymap.quit : ctrl+w # close the current figure
435+
#keymap.quit : ctrl+w, cmd+w # close the current figure
436436
#keymap.grid : g # switching on/off a grid in current axes
437437
#keymap.yscale : l # toggle scaling of y-axes ('log'/'linear')
438438
#keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear')

0 commit comments

Comments
 (0)