In Close a matplotlib figure using keyboard I learned that you can add keybinds to various matplotlib commands, including key.quit which exits the plot.
The keybinds can be assigned via:
plt.rcParams["keymap.quit"] = ['ctrl+w', 'cmd+w', 'q']
However, when I add space
or spacebar
to the list, space doesn't work. I know that list is defaults, so either I'm not modifying them at all or I have the name for spacebar wrong.
Does anyone know how to do this?