{"action":"created","issue":{"url":"https://api.github.com/repos/ginkgo-project/gpe/issues/8","repository_url":"https://api.github.com/repos/ginkgo-project/gpe","labels_url":"https://api.github.com/repos/ginkgo-project/gpe/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ginkgo-project/gpe/issues/8/comments","events_url":"https://api.github.com/repos/ginkgo-project/gpe/issues/8/events","html_url":"https://github.com/ginkgo-project/gpe/issues/8","id":383276342,"node_id":"MDU6SXNzdWUzODMyNzYzNDI=","number":8,"title":"Add buttons for exporting the plot in various image formats","user":{"login":"gflegar","id":1261711,"node_id":"MDQ6VXNlcjEyNjE3MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1261711?v=4","gravatar_id":"","url":"https://api.github.com/users/gflegar","html_url":"https://github.com/gflegar","followers_url":"https://api.github.com/users/gflegar/followers","following_url":"https://api.github.com/users/gflegar/following{/other_user}","gists_url":"https://api.github.com/users/gflegar/gists{/gist_id}","starred_url":"https://api.github.com/users/gflegar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gflegar/subscriptions","organizations_url":"https://api.github.com/users/gflegar/orgs","repos_url":"https://api.github.com/users/gflegar/repos","events_url":"https://api.github.com/users/gflegar/events{/privacy}","received_events_url":"https://api.github.com/users/gflegar/received_events","type":"User","site_admin":false},"labels":[{"id":898302242,"node_id":"MDU6TGFiZWw4OTgzMDIyNDI=","url":"https://api.github.com/repos/ginkgo-project/gpe/labels/Enhancement","name":"Enhancement","color":"D1D100","default":false},{"id":898302245,"node_id":"MDU6TGFiZWw4OTgzMDIyNDU=","url":"https://api.github.com/repos/ginkgo-project/gpe/labels/Help%20wanted","name":"Help wanted","color":"D9534F","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T20:10:22Z","updated_at":"2018-12-30T04:05:48Z","closed_at":null,"author_association":"MEMBER","body":"This one might be more trickier. The `<canvas>` html element used to draw the plot may have some method to get the raster data, which can then be converted to JPG, PNG or an image embedded in a PDF, but the resolution of such a plot will be limited to whatever is the resolution of the canvas (and that is not very large).\r\n\r\nWe could try converting it to SVG using something like [canvas2svg](https://github.com/gliffy/canvas2svg). From there it should not be very difficult to support other formats."},"comment":{"url":"https://api.github.com/repos/ginkgo-project/gpe/issues/comments/450537832","html_url":"https://github.com/ginkgo-project/gpe/issues/8#issuecomment-450537832","issue_url":"https://api.github.com/repos/ginkgo-project/gpe/issues/8","id":450537832,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDUzNzgzMg==","user":{"login":"gflegar","id":1261711,"node_id":"MDQ6VXNlcjEyNjE3MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1261711?v=4","gravatar_id":"","url":"https://api.github.com/users/gflegar","html_url":"https://github.com/gflegar","followers_url":"https://api.github.com/users/gflegar/followers","following_url":"https://api.github.com/users/gflegar/following{/other_user}","gists_url":"https://api.github.com/users/gflegar/gists{/gist_id}","starred_url":"https://api.github.com/users/gflegar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gflegar/subscriptions","organizations_url":"https://api.github.com/users/gflegar/orgs","repos_url":"https://api.github.com/users/gflegar/repos","events_url":"https://api.github.com/users/gflegar/events{/privacy}","received_events_url":"https://api.github.com/users/gflegar/received_events","type":"User","site_admin":false},"created_at":"2018-12-30T04:05:48Z","updated_at":"2018-12-30T04:05:48Z","author_association":"MEMBER","body":"Tried doing something based on the answers [here](https://stackoverflow.com/q/45563420/9385966).\r\nDoesn't seem to work properly - the points, the axes and the text are generated correctly, but the lines and polygons seem to be missing. Could be that canvas2svg is buggy. You can check the current progress on this in the `convert_to_svg` branch."}}
{"actor":{"display_login":"gflegar"}}