Change keymap rcParams with right click?

Is it possible to change the plt.rcParams dictionary keymap with a mouse click?

What I am trying to do is:

import matplotlib.pyplot as plt

plt.rcParams['keymap.zoom'] = 'z' # works
plt.rcParams['keymap.back'] = 'Button-3' # doesn't work

fig = plt.figure()
ax = fig.add_subplot(111)

ax.plot([1,2,3],[1,2,3])

plt.show()

      

I was wondering if the problem is string 'Button-3'

. If so, what should be the correct right-click call?

+3


source to share





All Articles