Title: Expose js an api function for saving figures as png/pdf/jpeg/eps/etc with config · Issue #89 · plotly/plotly.js · GitHub
Open Graph Title: Expose js an api function for saving figures as png/pdf/jpeg/eps/etc with config · Issue #89 · plotly/plotly.js
X Title: Expose js an api function for saving figures as png/pdf/jpeg/eps/etc with config · Issue #89 · plotly/plotly.js
Description: I'm sorry if this is already in another issue somewhere. I looked around a bit, but couldn't find it It would be awesome if the Snapshot functions were exposed at a higher level - perhaps through something that would work like this: Plot...
Open Graph Description: I'm sorry if this is already in another issue somewhere. I looked around a bit, but couldn't find it It would be awesome if the Snapshot functions were exposed at a higher level - perhaps through s...
X Description: I'm sorry if this is already in another issue somewhere. I looked around a bit, but couldn't find it It would be awesome if the Snapshot functions were exposed at a higher level - perhaps t...
Opengraph URL: https://github.com/plotly/plotly.js/issues/89
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose js an api function for saving figures as png/pdf/jpeg/eps/etc with config","articleBody":"I'm sorry if this is already in another issue somewhere. I looked around a bit, but couldn't find it\n\nIt would be awesome if the `Snapshot` functions were exposed at a higher level - perhaps through something that would work like this:\n\n``` javascript\nPlotly.save(gd, {format: 'pdf', width: '800', height: '450', dpi: '400'})\n```\n\nwhich would then trigger the download of the requested file (similar to how the snapshot button triggers a png download right now)\n\nBeing able to easily save to to a vector image backend like `pdf` or `eps` with specified sizes and dpi would be amazing -- then I could publish my plotly figures in latex based research articles.\n","author":{"url":"https://github.com/sglyon","@type":"Person","name":"sglyon"},"datePublished":"2015-12-08T17:58:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/89/plotly.js/issues/89"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:077d605f-4b75-b9bb-f2a1-ca02272b1669 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5DE:180095:EB25D5:13F3086:6A5945A2 |
| html-safe-nonce | 1a457aa1db07ebf3c166c47ee66c11a0377e877b989d36d2f62747f894823b76 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNURFOjE4MDA5NTpFQjI1RDU6MTNGMzA4Njo2QTU5NDVBMiIsInZpc2l0b3JfaWQiOiIzNTkxMTU5OTc0ODgwNDI5NDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | acf7cf7986ee681eb6d005654699dc4f5523f4979b0fd9018b092eac08af99c7 |
| hovercard-subject-tag | issue:121063644 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/89/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8479055330dcfc73e50a496966cf66dbc2a73f5c060d2b4e224be699a8d15a7/plotly/plotly.js/issues/89 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8479055330dcfc73e50a496966cf66dbc2a73f5c060d2b4e224be699a8d15a7/plotly/plotly.js/issues/89 |
| og:image:alt | I'm sorry if this is already in another issue somewhere. I looked around a bit, but couldn't find it It would be awesome if the Snapshot functions were exposed at a higher level - perhaps through s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sglyon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f801e05b35c85b2d72eae6534d2b1d4c02ba8732fd046450bab31e2f52450ce |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 49918fc503387d6d65b6bc6ce6f711c14d17bfbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width