是否可以将plt.rcParams字典的键映射更改为鼠标单击?
我要做的是:
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()
我想知道问题是否是'Button-3'
字符串。如果是,那么正确调用鼠标右键应该是什么?