{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4154","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4154/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4154/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4154/events","html_url":"https://github.com/matplotlib/matplotlib/issues/4154","id":58839145,"number":4154,"title":"imshow bug on GTKCairo and GTK3Cairo","user":{"login":"OceanWolf","id":3758703,"avatar_url":"https://avatars.githubusercontent.com/u/3758703?v=3","gravatar_id":"","url":"https://api.github.com/users/OceanWolf","html_url":"https://github.com/OceanWolf","followers_url":"https://api.github.com/users/OceanWolf/followers","following_url":"https://api.github.com/users/OceanWolf/following{/other_user}","gists_url":"https://api.github.com/users/OceanWolf/gists{/gist_id}","starred_url":"https://api.github.com/users/OceanWolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OceanWolf/subscriptions","organizations_url":"https://api.github.com/users/OceanWolf/orgs","repos_url":"https://api.github.com/users/OceanWolf/repos","events_url":"https://api.github.com/users/OceanWolf/events{/privacy}","received_events_url":"https://api.github.com/users/OceanWolf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/backend/cairo","name":"backend/cairo","color":"c7def8"},{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/needs_review","name":"needs_review","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/18","html_url":"https://github.com/matplotlib/matplotlib/milestones/next%20point%20release","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/18/labels","id":970105,"number":18,"title":"next point release","description":"Next minor release.","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":161,"closed_issues":35,"state":"open","created_at":"2015-02-07T21:22:30Z","updated_at":"2015-02-25T16:56:28Z","due_on":"2015-07-06T04:00:00Z","closed_at":null},"comments":9,"created_at":"2015-02-25T02:08:54Z","updated_at":"2015-02-25T17:46:48Z","closed_at":null,"body":"On master, the following code fails (works fine on master with ``GTK3Agg`` and with ``GTK3Cairo`` on 1.3.1 (debian))\r\n```python\r\nimport matplotlib\r\nmatplotlib.use('GTK3Cairo')\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\ndata = np.linspace(0, 10, 80).reshape(10, 8)\r\n\r\nplt.imshow(data)\r\nplt.show()\r\n```\r\n\r\n```\r\nFile \"matplotlib/lib/matplotlib/backends/backend_cairo.py\", line 169, in in draw_image\r\n    buf, cairo.FORMAT_ARGB32, cols, rows, cols*4)\r\nTypeError: Cannot use string as modifiable buffer\r\n```"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/76015672","html_url":"https://github.com/matplotlib/matplotlib/issues/4154#issuecomment-76015672","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4154","id":76015672,"user":{"login":"OceanWolf","id":3758703,"avatar_url":"https://avatars.githubusercontent.com/u/3758703?v=3","gravatar_id":"","url":"https://api.github.com/users/OceanWolf","html_url":"https://github.com/OceanWolf","followers_url":"https://api.github.com/users/OceanWolf/followers","following_url":"https://api.github.com/users/OceanWolf/following{/other_user}","gists_url":"https://api.github.com/users/OceanWolf/gists{/gist_id}","starred_url":"https://api.github.com/users/OceanWolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OceanWolf/subscriptions","organizations_url":"https://api.github.com/users/OceanWolf/orgs","repos_url":"https://api.github.com/users/OceanWolf/repos","events_url":"https://api.github.com/users/OceanWolf/events{/privacy}","received_events_url":"https://api.github.com/users/OceanWolf/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T17:46:48Z","updated_at":"2015-02-25T17:46:48Z","body":"I can't seem to pull this, I have weak git-foo...\r\n\r\n``git fetch upstream pull/4154/head:pr4154``"}}