matplotlib 1.4.2
TkAgg 8.5
python 2.7.3
OSX 10.8.5
After plotting a figure and using the interactive features, pressing certain number keys (2-9) disables the display of the x, y coordinates on the interactive navigation menu. Pressing ‘1’ restores this functionality. This prevents the number keys from being used in key mappings and having the coordinates interactively updated.
Reproduce with:
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.show()
- move the cursor to cause the x,y coordinates to display
- press a number key and move the cursor (‘2’-‘9’ turn off, ‘1’ restores the coordinate display)
Ah hah! I knew I came across something about this when researching my book.
In backend_bases.py for key_press_handler():
Essentially, it sets which axes are “navigable”. I have zero clue if this
is actually documented anywhere, though.
The way to disable the default keymap in matplotlib is:
On Tue, Jan 20, 2015 at 4:37 PM, kogelnik notifications@github.com wrote: