{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/2753","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2753/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2753/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2753/events","html_url":"https://github.com/mne-tools/mne-python/issues/2753","id":124084773,"number":2753,"title":"plot_evoked_topo and callbacks","user":{"login":"jjnurminen","id":8491321,"avatar_url":"https://avatars.githubusercontent.com/u/8491321?v=3","gravatar_id":"","url":"https://api.github.com/users/jjnurminen","html_url":"https://github.com/jjnurminen","followers_url":"https://api.github.com/users/jjnurminen/followers","following_url":"https://api.github.com/users/jjnurminen/following{/other_user}","gists_url":"https://api.github.com/users/jjnurminen/gists{/gist_id}","starred_url":"https://api.github.com/users/jjnurminen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjnurminen/subscriptions","organizations_url":"https://api.github.com/users/jjnurminen/orgs","repos_url":"https://api.github.com/users/jjnurminen/repos","events_url":"https://api.github.com/users/jjnurminen/events{/privacy}","received_events_url":"https://api.github.com/users/jjnurminen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-12-28T16:01:39Z","updated_at":"2016-01-11T15:46:03Z","closed_at":"2016-01-11T15:46:03Z","body":"I'm trying to use mne.viz.plot_evoked_topo(), but I'm having some trouble with the callback that displays a single channel. If I run my script from the Spyder IDE, it works perfectly. However if I run it from command line (or command line IPython), the single-channel plot is not opened on a mouse click.\r\n\r\nI tried adding plt.show() to the end of _plot_topo_onpick(). If I do this, I get figures on click. So this seems to be related to the default behavior of matplotlib being different in the two contexts.\r\n\r\nShould the callback call plt.show() always or does it have some undesirable side effects?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/170592109","html_url":"https://github.com/mne-tools/mne-python/issues/2753#issuecomment-170592109","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2753","id":170592109,"user":{"login":"jjnurminen","id":8491321,"avatar_url":"https://avatars.githubusercontent.com/u/8491321?v=3","gravatar_id":"","url":"https://api.github.com/users/jjnurminen","html_url":"https://github.com/jjnurminen","followers_url":"https://api.github.com/users/jjnurminen/followers","following_url":"https://api.github.com/users/jjnurminen/following{/other_user}","gists_url":"https://api.github.com/users/jjnurminen/gists{/gist_id}","starred_url":"https://api.github.com/users/jjnurminen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjnurminen/subscriptions","organizations_url":"https://api.github.com/users/jjnurminen/orgs","repos_url":"https://api.github.com/users/jjnurminen/repos","events_url":"https://api.github.com/users/jjnurminen/events{/privacy}","received_events_url":"https://api.github.com/users/jjnurminen/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T15:46:03Z","updated_at":"2016-01-11T15:46:03Z","body":"@agramfort Your solution works ok, so I'm closing this. Thanks."}}