{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5109","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5109/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5109/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5109/events","html_url":"https://github.com/matplotlib/matplotlib/pull/5109","id":107487675,"number":5109,"title":"Fix for bug in set_cmap in NonUniformImage","user":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/needs_review","name":"needs_review","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-21T10:55:42Z","updated_at":"2015-09-21T13:36:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5109","html_url":"https://github.com/matplotlib/matplotlib/pull/5109","diff_url":"https://github.com/matplotlib/matplotlib/pull/5109.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/5109.patch"},"body":"I think this is a legitimate bug and attached fix.\r\n\r\nRunning the regression test without the fix produced the following error:\r\n\r\n```python\r\nTraceback (most recent call last):\r\n  File \"/opt/miniconda/envs/matplotlib-dev/lib/python2.7/site-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"test_image.py\", line 447, in test_nonuniformimage_setcmap\r\n    im.set_cmap('Blues')\r\n  File \"/home/stuart/GitHub/matplotlib/lib/matplotlib/image.py\", line 855, in set_cmap\r\n    super(NonUniformImage, self).set_cmap(self, cmap)\r\nTypeError: set_cmap() takes exactly 2 arguments (3 given)\r\n```"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/141979877","html_url":"https://github.com/matplotlib/matplotlib/pull/5109#issuecomment-141979877","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5109","id":141979877,"user":{"login":"WeatherGod","id":291576,"avatar_url":"https://avatars.githubusercontent.com/u/291576?v=3","gravatar_id":"","url":"https://api.github.com/users/WeatherGod","html_url":"https://github.com/WeatherGod","followers_url":"https://api.github.com/users/WeatherGod/followers","following_url":"https://api.github.com/users/WeatherGod/following{/other_user}","gists_url":"https://api.github.com/users/WeatherGod/gists{/gist_id}","starred_url":"https://api.github.com/users/WeatherGod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeatherGod/subscriptions","organizations_url":"https://api.github.com/users/WeatherGod/orgs","repos_url":"https://api.github.com/users/WeatherGod/repos","events_url":"https://api.github.com/users/WeatherGod/events{/privacy}","received_events_url":"https://api.github.com/users/WeatherGod/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T13:36:07Z","updated_at":"2015-09-21T13:36:07Z","body":"By the way, could you also fix the same bug for `set_norm` just above?"}}