Title: Interface with animation options in Plotly.js · Issue #1496 · plotly/plotly.py · GitHub
Open Graph Title: Interface with animation options in Plotly.js · Issue #1496 · plotly/plotly.py
X Title: Interface with animation options in Plotly.js · Issue #1496 · plotly/plotly.py
Description: Currently there is no option to access the animation options of Plotly.js from python. This makes it extremely difficult to make proper animations since the default time between frames in 500ms. I have added an extra keyword argument to ...
Open Graph Description: Currently there is no option to access the animation options of Plotly.js from python. This makes it extremely difficult to make proper animations since the default time between frames in 500ms. I ...
X Description: Currently there is no option to access the animation options of Plotly.js from python. This makes it extremely difficult to make proper animations since the default time between frames in 500ms. I ...
Opengraph URL: https://github.com/plotly/plotly.py/issues/1496
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Interface with animation options in Plotly.js","articleBody":"Currently there is no option to access the animation options of Plotly.js from python. This makes it extremely difficult to make proper animations since the default time between frames in 500ms. I have added an extra keyword argument to offline.plot and offline.iplot called animation opts which allows the user to pass a python dictionary through and thus customize animations. \r\n\r\n```\r\nanimation_opts (default=None) -- Custom animation parameters to be passed\r\n to the function Plotly.animate in Plotly.js in the form str(dict)\r\n Example:\r\n\r\n\r\nfrom plotly.offline import plot\r\n figure = {'data': [{'x': [0, 1], 'y': [0, 1]}],\r\n 'layout': {'xaxis': {'range': [0, 5], 'autorange': False},\r\n 'yaxis': {'range': [0, 5], 'autorange': False},\r\n 'title': 'Start Title'},\r\n 'frames': [{'data': [{'x': [1, 2], 'y': [1, 2]}]},\r\n {'data': [{'x': [1, 4], 'y': [1, 4]}]},\r\n {'data': [{'x': [3, 4], 'y': [3, 4]}],\r\n 'layout': {'title': 'End Title'}}]}\r\n plot(figure,animation_opts=\"{frame: {duration: 1}}\")\r\n```\r\n \r\n[https://github.com/TakodaS/plotly.py](https://github.com/TakodaS/plotly.py)\r\n","author":{"url":"https://github.com/TakodaS","@type":"Person","name":"TakodaS"},"datePublished":"2019-04-05T14:34:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1496/plotly.py/issues/1496"}
| 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:ea0a60ad-53c1-b709-eea8-91aae5b9481d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCA0:45421:C95B8F:1210114:6A5795DB |
| html-safe-nonce | 171bf86ed65f43de5cf52b3ed415ac0a25aafd6bebbe8a7b78eabe465aed45e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0EwOjQ1NDIxOkM5NUI4RjoxMjEwMTE0OjZBNTc5NURCIiwidmlzaXRvcl9pZCI6IjY2NTkyOTQ5MDI0MzcyNTQ2MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ff74e461b37758b6385b2b6718f77daf2bf523d6e1bc453488381e4e49834d4c |
| hovercard-subject-tag | issue:429787143 |
| 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/1496/issue_layout |
| twitter:image | https://opengraph.githubassets.com/867b27ba2a4ed557112c9ed864c7b0a5aa20caab80e6f42416b079960940d139/plotly/plotly.py/issues/1496 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/867b27ba2a4ed557112c9ed864c7b0a5aa20caab80e6f42416b079960940d139/plotly/plotly.py/issues/1496 |
| og:image:alt | Currently there is no option to access the animation options of Plotly.js from python. This makes it extremely difficult to make proper animations since the default time between frames in 500ms. I ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TakodaS |
| hostname | github.com |
| expected-hostname | github.com |
| None | a87fc68e9bdf22e1c7e48ac6a60b98882f4bb103314b3f26b3460c61fc5441ae |
| 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 | a2198d0212ed703af207673eb4d0868d4f867a5b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width