{"action":"created","issue":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/589","labels_url":"https://api.github.com/repos/nilearn/nilearn/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/589/comments","events_url":"https://api.github.com/repos/nilearn/nilearn/issues/589/events","html_url":"https://github.com/nilearn/nilearn/pull/589","id":77092769,"number":589,"title":"[MRG+1] Adding a 4Dplot function displaying as a contours in img_plotting ","user":{"login":"KamalakerDadi","id":11410385,"avatar_url":"https://avatars.githubusercontent.com/u/11410385?v=3","gravatar_id":"","url":"https://api.github.com/users/KamalakerDadi","html_url":"https://github.com/KamalakerDadi","followers_url":"https://api.github.com/users/KamalakerDadi/followers","following_url":"https://api.github.com/users/KamalakerDadi/following{/other_user}","gists_url":"https://api.github.com/users/KamalakerDadi/gists{/gist_id}","starred_url":"https://api.github.com/users/KamalakerDadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KamalakerDadi/subscriptions","organizations_url":"https://api.github.com/users/KamalakerDadi/orgs","repos_url":"https://api.github.com/users/KamalakerDadi/repos","events_url":"https://api.github.com/users/KamalakerDadi/events{/privacy}","received_events_url":"https://api.github.com/users/KamalakerDadi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nilearn/nilearn/labels/New%20feature","name":"New feature","color":"009800"},{"url":"https://api.github.com/repos/nilearn/nilearn/labels/Plotting","name":"Plotting","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"KamalakerDadi","id":11410385,"avatar_url":"https://avatars.githubusercontent.com/u/11410385?v=3","gravatar_id":"","url":"https://api.github.com/users/KamalakerDadi","html_url":"https://github.com/KamalakerDadi","followers_url":"https://api.github.com/users/KamalakerDadi/followers","following_url":"https://api.github.com/users/KamalakerDadi/following{/other_user}","gists_url":"https://api.github.com/users/KamalakerDadi/gists{/gist_id}","starred_url":"https://api.github.com/users/KamalakerDadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KamalakerDadi/subscriptions","organizations_url":"https://api.github.com/users/KamalakerDadi/orgs","repos_url":"https://api.github.com/users/KamalakerDadi/repos","events_url":"https://api.github.com/users/KamalakerDadi/events{/privacy}","received_events_url":"https://api.github.com/users/KamalakerDadi/received_events","type":"User","site_admin":false},"milestone":null,"comments":38,"created_at":"2015-05-16T18:02:05Z","updated_at":"2015-07-16T13:08:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/589","html_url":"https://github.com/nilearn/nilearn/pull/589","diff_url":"https://github.com/nilearn/nilearn/pull/589.diff","patch_url":"https://github.com/nilearn/nilearn/pull/589.patch"},"body":"Edited by @AlexandreAbraham\r\n- [x] thicken contour lines\r\n- [x] add an example of plotting with several atlases\r\n- [x] make code PEP8 compliant\r\n- [x] for thresholding, accept one value, or a list of values, or a percentage, or a list of percentage\r\n\r\nI have basically utilised the content of the code and documentation of each arguments for writing a function called ```plot_4d``` in ```img_plotting```.\r\nHere is the code snippet to call the function ```plot_4d``` for plotting in contours. \r\nHarvard Oxford Atlas:\r\n```python\r\nfrom nilearn import datasets, plotting\r\nimport matplotlib.pyplot as plt\r\natlas_img_4D, labels = datasets.fetch_harvard_oxford('cort-prob-2mm')\r\ndisplay = plotting.img_plotting.plot_4d(atlas_img_4D)\r\nplt.show()\r\n```\r\nResult:\r\n![figure_1](https://cloud.githubusercontent.com/assets/11410385/7667394/2952f1ae-fc06-11e4-8055-70f6ba96a2b2.png)\r\n\r\n\r\nMSDL Atlas:\r\n```python\r\nfrom nilearn import datasets, plotting\r\nimport matplotlib.pyplot as plt\r\natlas_data = datasets.fetch_msdl_atlas()\r\natlas_filename = atlas_data.maps\r\ndisplay = plotting.img_plotting.plot_4d(atlas_filename)\r\nplt.show()\r\n```\r\nResult:\r\n![figuremsdl](https://cloud.githubusercontent.com/assets/11410385/7667400/54c4ae68-fc06-11e4-8a05-cfdb56c63ad8.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/comments/121951180","html_url":"https://github.com/nilearn/nilearn/pull/589#issuecomment-121951180","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/589","id":121951180,"user":{"login":"GaelVaroquaux","id":208217,"avatar_url":"https://avatars.githubusercontent.com/u/208217?v=3","gravatar_id":"","url":"https://api.github.com/users/GaelVaroquaux","html_url":"https://github.com/GaelVaroquaux","followers_url":"https://api.github.com/users/GaelVaroquaux/followers","following_url":"https://api.github.com/users/GaelVaroquaux/following{/other_user}","gists_url":"https://api.github.com/users/GaelVaroquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/GaelVaroquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaelVaroquaux/subscriptions","organizations_url":"https://api.github.com/users/GaelVaroquaux/orgs","repos_url":"https://api.github.com/users/GaelVaroquaux/repos","events_url":"https://api.github.com/users/GaelVaroquaux/events{/privacy}","received_events_url":"https://api.github.com/users/GaelVaroquaux/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T13:08:50Z","updated_at":"2015-07-16T13:08:50Z","body":"> I think @KamalakerDadi is still tweaking a few things (sphinx minor issues\n> mostly).\n\nCorrect. But is this a :+1: once he is done?\n"}}