|
From: reem17 <elwin@u.northwestern.edu> - 2014-12-04 17:02:44
|
I'm using matplotlib version 1.4.2 on linux and am having trouble getting key
event
callbacks when using the nbagg backend in an ipython notebook (i've tried in
firefox and chromium).
The key press events seem to not be processed (no matter what key I try to
press). This code does work with the qt backend.
%matplotlib nbagg
import matplotlib.pyplot as plt
f=plt.figure()
plt.plot([1,2,3,4])
def handler(event):
plt.plot([4,3,2,1])
f.canvas.mpl_connect('key_press_event',handler);
Thanks for any help.
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Key-events-using-nbagg-backend-tp44551.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|