+1 for 'q', it's the one gnuplot keybinding I forgot to
> mention to John in a private message yesterday about
> further gnuplot keybindings.
FYI, in case you want to experiment with various keybindins, in
backend_bases.py the FigureManagerBase.key_press method can be easily
extended. Eg, to bind 'q' to close the window
def key_press(self, event):
# these bindings happen whether you are over an axes or not
if event.key == 'q':
self.destroy() # how cruel to have to destroy oneself!
return
if event.inaxes is None: return
# the mouse has to be over an axes to trigger these
if event.key == 'g':
event.inaxes.grid()
self.canvas.draw()
elif event.key == 'l':
event.inaxes.toggle_log_lineary()
self.canvas.draw()
I'd like to here from Steve, who along with Fernando is a resident UI
design expert, about whether this is a good idea. I'm still smarting
after he made me remove the close button from the toolbar
JDH