{"action":"created","issue":{"url":"https://api.github.com/repos/bloomberg/bqplot/issues/537","repository_url":"https://api.github.com/repos/bloomberg/bqplot","labels_url":"https://api.github.com/repos/bloomberg/bqplot/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/bloomberg/bqplot/issues/537/comments","events_url":"https://api.github.com/repos/bloomberg/bqplot/issues/537/events","html_url":"https://github.com/bloomberg/bqplot/pull/537","id":254084070,"number":537,"title":"new: Image mark","user":{"login":"maartenbreddels","id":1765949,"avatar_url":"https://avatars0.githubusercontent.com/u/1765949?v=4","gravatar_id":"","url":"https://api.github.com/users/maartenbreddels","html_url":"https://github.com/maartenbreddels","followers_url":"https://api.github.com/users/maartenbreddels/followers","following_url":"https://api.github.com/users/maartenbreddels/following{/other_user}","gists_url":"https://api.github.com/users/maartenbreddels/gists{/gist_id}","starred_url":"https://api.github.com/users/maartenbreddels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maartenbreddels/subscriptions","organizations_url":"https://api.github.com/users/maartenbreddels/orgs","repos_url":"https://api.github.com/users/maartenbreddels/repos","events_url":"https://api.github.com/users/maartenbreddels/events{/privacy}","received_events_url":"https://api.github.com/users/maartenbreddels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-30T17:53:26Z","updated_at":"2017-09-03T18:01:31Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/bloomberg/bqplot/pulls/537","html_url":"https://github.com/bloomberg/bqplot/pull/537","diff_url":"https://github.com/bloomberg/bqplot/pull/537.diff","patch_url":"https://github.com/bloomberg/bqplot/pull/537.patch"},"body":"Usage\r\n```python\r\nimport bqplot\r\nimport ipywidgets as widgets\r\n\r\nwith open(\"sample.png\", 'rb') as f:\r\n    data = f.read()\r\nimage = widgets.Image(value=data)\r\n\r\nscale_x = bqplot.LinearScale(min=-1, max=2)\r\nscale_y = bqplot.LinearScale(min=-0.5, max=2)\r\nimage_mark = bqplot.Image(image=image, scales={'x': scale_x, 'y': scale_y})\r\nfig = bqplot.Figure(padding_x=0, padding_y=0)\r\nfig.marks = [image_mark]\r\nfig.axes = [bqplot.Axis(scale=scale_x), bqplot.Axis(scale=scale_y, orientation='vertical')]\r\nfig\r\n```\r\nIt uses the widget.Image widget. Maybe it doesn't do all the things, like colorscales and all, but I think this makes a lot possible already."},"comment":{"url":"https://api.github.com/repos/bloomberg/bqplot/issues/comments/326820715","html_url":"https://github.com/bloomberg/bqplot/pull/537#issuecomment-326820715","issue_url":"https://api.github.com/repos/bloomberg/bqplot/issues/537","id":326820715,"user":{"login":"ssunkara1","id":6981114,"avatar_url":"https://avatars1.githubusercontent.com/u/6981114?v=4","gravatar_id":"","url":"https://api.github.com/users/ssunkara1","html_url":"https://github.com/ssunkara1","followers_url":"https://api.github.com/users/ssunkara1/followers","following_url":"https://api.github.com/users/ssunkara1/following{/other_user}","gists_url":"https://api.github.com/users/ssunkara1/gists{/gist_id}","starred_url":"https://api.github.com/users/ssunkara1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssunkara1/subscriptions","organizations_url":"https://api.github.com/users/ssunkara1/orgs","repos_url":"https://api.github.com/users/ssunkara1/repos","events_url":"https://api.github.com/users/ssunkara1/events{/privacy}","received_events_url":"https://api.github.com/users/ssunkara1/received_events","type":"User","site_admin":false},"created_at":"2017-09-03T18:01:31Z","updated_at":"2017-09-03T18:01:31Z","author_association":"MEMBER","body":"@maartenbreddels Somehow I cannot get the `Image` mark to work with your example above. I can get `ipywidgets.Image` to display fine in the output area but not on a `Figure`."}}
{"actor":{"display_login":"ssunkara1"}}