From 1e76350dc860d78e010faa00e9eaaaaef989a3c6 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sat, 21 Mar 2020 11:35:00 +0100 Subject: [PATCH] Document Quit All works only with toolmanager --- doc/users/navigation_toolbar.rst | 2 +- lib/matplotlib/rcsetup.py | 1 + matplotlibrc.template | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/users/navigation_toolbar.rst b/doc/users/navigation_toolbar.rst index 162dc6b6e98a..7c2d5314a05d 100644 --- a/doc/users/navigation_toolbar.rst +++ b/doc/users/navigation_toolbar.rst @@ -94,7 +94,7 @@ Zoom-to-rect **o** Save **ctrl** + **s** Toggle fullscreen **f** or **ctrl** + **f** Close plot **ctrl** + **w** -Close all plots **shift** + **w** +Close all plots **shift** + **w** (only when using toolmanager) Constrain pan/zoom to x axis hold **x** when panning/zooming with mouse Constrain pan/zoom to y axis hold **y** when panning/zooming with mouse Preserve aspect ratio hold **CONTROL** when panning/zooming with mouse diff --git a/lib/matplotlib/rcsetup.py b/lib/matplotlib/rcsetup.py index f8459413bbeb..81cd1f46d266 100644 --- a/lib/matplotlib/rcsetup.py +++ b/lib/matplotlib/rcsetup.py @@ -1462,6 +1462,7 @@ def _convert_validator_spec(key, conv): 'keymap.zoom': [['o'], validate_stringlist], 'keymap.save': [['s', 'ctrl+s'], validate_stringlist], 'keymap.quit': [['ctrl+w', 'cmd+w', 'q'], validate_stringlist], + # quit_all is only supported in toolmanager (#14208) 'keymap.quit_all': [['W', 'cmd+W', 'Q'], validate_stringlist], 'keymap.grid': [['g'], validate_stringlist], 'keymap.grid_minor': [['G'], validate_stringlist], diff --git a/matplotlibrc.template b/matplotlibrc.template index 999806d5f43c..3804c0f3d3e3 100644 --- a/matplotlibrc.template +++ b/matplotlibrc.template @@ -708,7 +708,7 @@ #keymap.save: s, ctrl+s # saving current figure #keymap.help: f1 # display help about active tools #keymap.quit: ctrl+w, cmd+w, q # close the current figure -#keymap.quit_all: W, cmd+W, Q # close all figures +#keymap.quit_all: W, cmd+W, Q # close all figures (only when using toolmanager) #keymap.grid: g # switching on/off major grids in current axes #keymap.grid_minor: G # switching on/off minor grids in current axes #keymap.yscale: l # toggle scaling of y-axes ('log'/'linear')