{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/2198","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2198/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2198/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2198/events","html_url":"https://github.com/mne-tools/mne-python/issues/2198","id":87437711,"number":2198,"title":"ENH: apply function to raw/epoch plots","user":{"login":"choldgraf","id":1839645,"avatar_url":"https://avatars.githubusercontent.com/u/1839645?v=3","gravatar_id":"","url":"https://api.github.com/users/choldgraf","html_url":"https://github.com/choldgraf","followers_url":"https://api.github.com/users/choldgraf/followers","following_url":"https://api.github.com/users/choldgraf/following{/other_user}","gists_url":"https://api.github.com/users/choldgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/choldgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choldgraf/subscriptions","organizations_url":"https://api.github.com/users/choldgraf/orgs","repos_url":"https://api.github.com/users/choldgraf/repos","events_url":"https://api.github.com/users/choldgraf/events{/privacy}","received_events_url":"https://api.github.com/users/choldgraf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-11T18:20:38Z","updated_at":"2015-06-17T11:31:21Z","closed_at":null,"body":"Following up from the epochs data viz PR. Do you guys think it would be useful to have an option to supply a function to the plot call, and then have a button/key that calls this function on the data and then re-plots? The function would have to take the currently-displayed block of data and return an array w/ the same shape and data type as what is currently displayed.\r\n\r\nAn example of where this would be useful is with high gamma in ECoG. Often it's useful to look at the raw ecog data, and if you see something noisy it can help to look at a bandpass + hilbert transformed version of the data for high gamma. I know some labs have internal code that lets you quickly switch back and forth between HG and the raw traces, and it is useful. Perhaps this would be useful to other people for other functions as well?\r\n\r\nIf it's just a keypress rather than a button, then perhaps it can be implemented without changing any of the user-facing things unless they look for it."},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/112761124","html_url":"https://github.com/mne-tools/mne-python/issues/2198#issuecomment-112761124","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/2198","id":112761124,"user":{"login":"agramfort","id":161052,"avatar_url":"https://avatars.githubusercontent.com/u/161052?v=3","gravatar_id":"","url":"https://api.github.com/users/agramfort","html_url":"https://github.com/agramfort","followers_url":"https://api.github.com/users/agramfort/followers","following_url":"https://api.github.com/users/agramfort/following{/other_user}","gists_url":"https://api.github.com/users/agramfort/gists{/gist_id}","starred_url":"https://api.github.com/users/agramfort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agramfort/subscriptions","organizations_url":"https://api.github.com/users/agramfort/orgs","repos_url":"https://api.github.com/users/agramfort/repos","events_url":"https://api.github.com/users/agramfort/events{/privacy}","received_events_url":"https://api.github.com/users/agramfort/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T11:31:21Z","updated_at":"2015-06-17T11:31:21Z","body":"maybe we can use the new plot_epochs to plot ica sources as epochs?\n"}}