{"action":"created","issue":{"url":"https://api.github.com/repos/lucklab/erplab/issues/16","labels_url":"https://api.github.com/repos/lucklab/erplab/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/lucklab/erplab/issues/16/comments","events_url":"https://api.github.com/repos/lucklab/erplab/issues/16/events","html_url":"https://github.com/lucklab/erplab/issues/16","id":65802840,"number":16,"title":"Matlab 2014b/2015: handle.listener error","user":{"login":"percpt","id":5808953,"avatar_url":"https://avatars.githubusercontent.com/u/5808953?v=3","gravatar_id":"","url":"https://api.github.com/users/percpt","html_url":"https://github.com/percpt","followers_url":"https://api.github.com/users/percpt/followers","following_url":"https://api.github.com/users/percpt/following{/other_user}","gists_url":"https://api.github.com/users/percpt/gists{/gist_id}","starred_url":"https://api.github.com/users/percpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percpt/subscriptions","organizations_url":"https://api.github.com/users/percpt/orgs","repos_url":"https://api.github.com/users/percpt/repos","events_url":"https://api.github.com/users/percpt/events{/privacy}","received_events_url":"https://api.github.com/users/percpt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lucklab/erplab/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"percpt","id":5808953,"avatar_url":"https://avatars.githubusercontent.com/u/5808953?v=3","gravatar_id":"","url":"https://api.github.com/users/percpt","html_url":"https://github.com/percpt","followers_url":"https://api.github.com/users/percpt/followers","following_url":"https://api.github.com/users/percpt/following{/other_user}","gists_url":"https://api.github.com/users/percpt/gists{/gist_id}","starred_url":"https://api.github.com/users/percpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percpt/subscriptions","organizations_url":"https://api.github.com/users/percpt/orgs","repos_url":"https://api.github.com/users/percpt/repos","events_url":"https://api.github.com/users/percpt/events{/privacy}","received_events_url":"https://api.github.com/users/percpt/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-01T23:56:35Z","updated_at":"2015-04-23T21:48:56Z","closed_at":null,"body":"Problem\r\n----\r\nIn [MATLAB 2014b and above](http://www.mathworks.com/help/matlab/graphics_transition/why-does-handle-listener-return-an-error-1.html), the new graphics system is based on MATLAB® objects, which do not support the use of HANDLE.LISTENER to create event listeners. To create listeners for graphics objects, use the function ADDLISTENER.\r\n\r\n\r\n\r\n---\r\n### Originally from: Matthew Walenski\r\n\r\nMatthew Walenski matthew.walenski@northwestern.edu via ucdavis.edu \r\nApr 1\r\nto erplab \r\n\r\nHi,\r\n\r\nI am having trouble plotting averaged ERPS – when I select ERPLAB -> Plot ERP -> Plot ERP waveforms\r\nI end up with only a single electrode, which is not labelled and there is no legend.\r\n \r\nI get the following error message below.\r\n \r\nI found a bug report for this issue (it appears to be the same issue) in EEGLAB, but saw no resolution there, only a reference to this mailing list.\r\nI was unable to find/search the list archive at UC Davis, so I would appreciate any help or insight!\r\n \r\nBest,\r\nmatt\r\n \r\n ```\r\n---------error message----------\r\nNo constructor 'handle.listener' with matching signature found.\r\n \r\nError in neozeroaxes>plistener (line 154)\r\nhl = handle.listener(hC, hSrc, psetact, {func, axesin});\r\n \r\nError in neozeroaxes (line 144)\r\nplistener(axesin,'XLim',@xylim)\r\n \r\nError in ploterps (line 574)\r\n                        neozeroaxes(1, fsaxtick, BCKGCOLOR)\r\n \r\nError in pop_ploterps (line 684)\r\nploterps(ERP, binArray, chanArray,  qpstyle, qMgfp, qBlc, qxscale, qyscale, qLineWidth, qisiy,\r\nqFontSizeChan, qFontSizeLeg, qFontSizeTicks, qerrorstd,...\r\n \r\nError in pop_ploterps (line 301)\r\n        [ERP, erpcom] = pop_ploterps(ERP, binArray, chanArray, 'AutoYlim', rAutoYlim, 'BinNum',\r\n        rBinNum, 'Blc', blcorr,...\r\nError while evaluating Menu Callback\r\n```"},"comment":{"url":"https://api.github.com/repos/lucklab/erplab/issues/comments/95728692","html_url":"https://github.com/lucklab/erplab/issues/16#issuecomment-95728692","issue_url":"https://api.github.com/repos/lucklab/erplab/issues/16","id":95728692,"user":{"login":"percpt","id":5808953,"avatar_url":"https://avatars.githubusercontent.com/u/5808953?v=3","gravatar_id":"","url":"https://api.github.com/users/percpt","html_url":"https://github.com/percpt","followers_url":"https://api.github.com/users/percpt/followers","following_url":"https://api.github.com/users/percpt/following{/other_user}","gists_url":"https://api.github.com/users/percpt/gists{/gist_id}","starred_url":"https://api.github.com/users/percpt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percpt/subscriptions","organizations_url":"https://api.github.com/users/percpt/orgs","repos_url":"https://api.github.com/users/percpt/repos","events_url":"https://api.github.com/users/percpt/events{/privacy}","received_events_url":"https://api.github.com/users/percpt/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T21:48:56Z","updated_at":"2015-04-23T21:48:56Z","body":"We need to apply this fix to the following 3 functions that use  ```handle.listener``` function:\r\n\r\n1. [functions/neozeroaxes.m (line 154)](https://github.com/lucklab/erplab/blob/bc3e59c214bb09f8b9ad2c253253c23754c73af3/functions/neozeroaxes.m#L154)\r\n2. [functions/neoaxescenter.m (line 183)](https://github.com/lucklab/erplab/blob/ea4e8e9323d118167969769cb17cc48013522650/functions/neoaxescenter.m#L183)\r\n3. [functions/axescenter.m (line 188)](https://github.com/lucklab/erplab/blob/f0072b0a2aa7f1411f01f4e8eb6c16db9fb815ed/functions/axescenter.m#L188)"}}