Title: How to download figures from plotly.offline.iplot after setting atttribute image='svg' · Issue #1502 · plotly/plotly.py · GitHub
Open Graph Title: How to download figures from plotly.offline.iplot after setting atttribute image='svg' · Issue #1502 · plotly/plotly.py
X Title: How to download figures from plotly.offline.iplot after setting atttribute image='svg' · Issue #1502 · plotly/plotly.py
Description: It is said from the help(plotly.offline.iplot): image (default=None |'png' |'jpeg' |'svg' |'webp') -- This parameter sets the format of the image to be downloaded, if we choose to download an image. This parameter has a default value of ...
Open Graph Description: It is said from the help(plotly.offline.iplot): image (default=None |'png' |'jpeg' |'svg' |'webp') -- This parameter sets the format of the image to be downloaded, if we choose to download an image...
X Description: It is said from the help(plotly.offline.iplot): image (default=None |'png' |'jpeg' |'svg' |'webp') -- This parameter sets the format of the image to be downloaded, i...
Opengraph URL: https://github.com/plotly/plotly.py/issues/1502
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to download figures from plotly.offline.iplot after setting atttribute image='svg'","articleBody":"It is said from the `help(plotly.offline.iplot)`:\r\n\u003e image (default=None |'png' |'jpeg' |'svg' |'webp') -- This parameter sets\r\n the format of the image to be downloaded, if we choose to download an\r\n image. This parameter has a default value of None indicating that no\r\n image should be downloaded.\r\n\r\nMy understanding is that we can download the figure as the format of the image after setting this attribute. However, how can we download it? Please see the below code. Could anyone explain what should be down next in order to download the figure?\r\n\r\nAlternatively, I can use `plotly.offline.plot` which return a _html_ link and I can download the figure after openning the link. However, the downside is that the figure won't be shown inside the jupyter notebook. \r\n\r\n```\r\nimport plotly\r\nimport plotly.graph_objs as go\r\ninit_notebook_mode(True)\r\n\r\nimg_name = 'my-plot'\r\ndata = [go.Scatter(x=[1, 2, 3], y=[3, 2, 6])]\r\nplotly.offline.iplot(data, filename=img_name, image='svg')\r\n```","author":{"url":"https://github.com/sw-gong","@type":"Person","name":"sw-gong"},"datePublished":"2019-04-08T16:40:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1502/plotly.py/issues/1502"}
| 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:a296afd8-5976-83a8-7201-065f7022a274 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9808:A2078:388566:4CD8E0:6A586841 |
| html-safe-nonce | 56b39ec4a7b3d1cb292fd4b0e1cdc0c1a4c596607972ca55601fd440d3adbb4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODA4OkEyMDc4OjM4ODU2Njo0Q0Q4RTA6NkE1ODY4NDEiLCJ2aXNpdG9yX2lkIjoiNzA4MDU2MTI4NTUzMjI2ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 07ffc65cc641d9f025b9f1d1fd72e1b850c0d570c93d80736fa55738e10a0f3d |
| hovercard-subject-tag | issue:430549857 |
| 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.py/1502/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d1ad124419358aa6c1a10b20fa5e3da7a0f9a8306098c4240fd9669994a40a4a/plotly/plotly.py/issues/1502 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d1ad124419358aa6c1a10b20fa5e3da7a0f9a8306098c4240fd9669994a40a4a/plotly/plotly.py/issues/1502 |
| og:image:alt | It is said from the help(plotly.offline.iplot): image (default=None |'png' |'jpeg' |'svg' |'webp') -- This parameter sets the format of the image to be downloaded, if we choose to download an image... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sw-gong |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579099 |
| octolytics-dimension-repository_nwo | plotly/plotly.py |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579099 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.py |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width