{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/186","labels_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/186/comments","events_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/186/events","html_url":"https://github.com/Itseez/opencv_contrib/pull/186","id":61633798,"number":186,"title":"Plot Module","user":{"login":"nmoutinho","id":9116444,"avatar_url":"https://avatars.githubusercontent.com/u/9116444?v=3","gravatar_id":"","url":"https://api.github.com/users/nmoutinho","html_url":"https://github.com/nmoutinho","followers_url":"https://api.github.com/users/nmoutinho/followers","following_url":"https://api.github.com/users/nmoutinho/following{/other_user}","gists_url":"https://api.github.com/users/nmoutinho/gists{/gist_id}","starred_url":"https://api.github.com/users/nmoutinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmoutinho/subscriptions","organizations_url":"https://api.github.com/users/nmoutinho/orgs","repos_url":"https://api.github.com/users/nmoutinho/repos","events_url":"https://api.github.com/users/nmoutinho/events{/privacy}","received_events_url":"https://api.github.com/users/nmoutinho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-14T15:59:06Z","updated_at":"2015-10-01T14:09:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Itseez/opencv_contrib/pulls/186","html_url":"https://github.com/Itseez/opencv_contrib/pull/186","diff_url":"https://github.com/Itseez/opencv_contrib/pull/186.diff","patch_url":"https://github.com/Itseez/opencv_contrib/pull/186.patch"},"body":"Created a Plot2D Module which allows you to easily plot data from a Mat. You can plot 1D or 2D plots, change the window size, the axis limits and the colors of all the elements. \r\n\r\nIn C++, you just have to do:\r\n```\r\nMat data; \r\nMat plot_result;\r\n//-------------------------------//\r\n//     fill your data here\r\n//-------------------------------//\r\nPtr<plot::Plot2d> plot;\r\nplot = plot::createPlot2d(data);\r\nplot->render(plot_result);\r\n//-------------------------------//\r\n//         show the plot\r\n//-------------------------------//\r\nimshow(\"plot\",plot_result );\r\n```\r\nand that's it.\r\n\r\nThese are two examples of functions being plotted:\r\nsin(x)\r\n![sin_x](https://cloud.githubusercontent.com/assets/9116444/6652336/5ea0c9dc-ca63-11e4-81fa-7b5dfc1ee0cf.png)\r\n\r\nx^2\r\n![x_2](https://cloud.githubusercontent.com/assets/9116444/6652345/661dba4e-ca63-11e4-86bc-0c4a74388b5d.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/comments/144738518","html_url":"https://github.com/Itseez/opencv_contrib/pull/186#issuecomment-144738518","issue_url":"https://api.github.com/repos/Itseez/opencv_contrib/issues/186","id":144738518,"user":{"login":"StevenPuttemans","id":4621239,"avatar_url":"https://avatars.githubusercontent.com/u/4621239?v=3","gravatar_id":"","url":"https://api.github.com/users/StevenPuttemans","html_url":"https://github.com/StevenPuttemans","followers_url":"https://api.github.com/users/StevenPuttemans/followers","following_url":"https://api.github.com/users/StevenPuttemans/following{/other_user}","gists_url":"https://api.github.com/users/StevenPuttemans/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenPuttemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenPuttemans/subscriptions","organizations_url":"https://api.github.com/users/StevenPuttemans/orgs","repos_url":"https://api.github.com/users/StevenPuttemans/repos","events_url":"https://api.github.com/users/StevenPuttemans/events{/privacy}","received_events_url":"https://api.github.com/users/StevenPuttemans/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T14:09:38Z","updated_at":"2015-10-01T14:09:38Z","body":"@nmoutinho might be interesting for you: https://github.com/Itseez/opencv/pull/5386\r\nIf we combine both things, the plotting properties can become even better in OpenCV!"}}