{"action":"created","issue":{"url":"https://api.github.com/repos/tuckermcclure/matlab-plot-big/issues/2","repository_url":"https://api.github.com/repos/tuckermcclure/matlab-plot-big","labels_url":"https://api.github.com/repos/tuckermcclure/matlab-plot-big/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tuckermcclure/matlab-plot-big/issues/2/comments","events_url":"https://api.github.com/repos/tuckermcclure/matlab-plot-big/issues/2/events","html_url":"https://github.com/tuckermcclure/matlab-plot-big/issues/2","id":205359649,"number":2,"title":"Update function","user":{"login":"LG1990","id":6192549,"avatar_url":"https://avatars0.githubusercontent.com/u/6192549?v=4","gravatar_id":"","url":"https://api.github.com/users/LG1990","html_url":"https://github.com/LG1990","followers_url":"https://api.github.com/users/LG1990/followers","following_url":"https://api.github.com/users/LG1990/following{/other_user}","gists_url":"https://api.github.com/users/LG1990/gists{/gist_id}","starred_url":"https://api.github.com/users/LG1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LG1990/subscriptions","organizations_url":"https://api.github.com/users/LG1990/orgs","repos_url":"https://api.github.com/users/LG1990/repos","events_url":"https://api.github.com/users/LG1990/events{/privacy}","received_events_url":"https://api.github.com/users/LG1990/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-04T17:04:23Z","updated_at":"2017-07-20T04:13:21Z","closed_at":null,"body":"Hello, thank you for your awesome script. Just one question: I'm plotting data incoming from a device every 100 ms, and the simple plot function get slower and slower with time. \r\nSo I tried reduce_plot, but I'm not able to recursively update the plot.\r\n\r\nmy code works like this.\r\n\r\n% define timer\r\ntimer('Period',0.1,'TimerFcn',@TimerClbk)\r\n\r\nfunction TimerClbk(hObject,event)\r\nl = get(h.axis,'Children')\r\nif isempty(l)\r\n   % if no plot is present, plot the data\r\n   rp = reduce_plot(h.axis,X,Y)\r\nelse\r\n  % otherwise update the data\r\n  set(rp,'XData',newX,'YData',newY)\r\nend\r\n\r\nit always stays the same...\r\nam I doing it right?\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/tuckermcclure/matlab-plot-big/issues/comments/316591730","html_url":"https://github.com/tuckermcclure/matlab-plot-big/issues/2#issuecomment-316591730","issue_url":"https://api.github.com/repos/tuckermcclure/matlab-plot-big/issues/2","id":316591730,"user":{"login":"tuckermcclure","id":11742321,"avatar_url":"https://avatars1.githubusercontent.com/u/11742321?v=4","gravatar_id":"","url":"https://api.github.com/users/tuckermcclure","html_url":"https://github.com/tuckermcclure","followers_url":"https://api.github.com/users/tuckermcclure/followers","following_url":"https://api.github.com/users/tuckermcclure/following{/other_user}","gists_url":"https://api.github.com/users/tuckermcclure/gists{/gist_id}","starred_url":"https://api.github.com/users/tuckermcclure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuckermcclure/subscriptions","organizations_url":"https://api.github.com/users/tuckermcclure/orgs","repos_url":"https://api.github.com/users/tuckermcclure/repos","events_url":"https://api.github.com/users/tuckermcclure/events{/privacy}","received_events_url":"https://api.github.com/users/tuckermcclure/received_events","type":"User","site_admin":false},"created_at":"2017-07-20T04:13:21Z","updated_at":"2017-07-20T04:13:21Z","body":"Sorry, @LG1990! I'm only just now finding this issue! I'm afraid these tools won't work well for updating the material in a plot over time."}}
{"actor":{"display_login":"tuckermcclure"}}