Title: update_*() batch methods · Issue #1484 · plotly/plotly.py · GitHub
Open Graph Title: update_*() batch methods · Issue #1484 · plotly/plotly.py
X Title: update_*() batch methods · Issue #1484 · plotly/plotly.py
Description: Given that px produces figures which often have non-trivial numbers of fairly 'regular' axes/annotations/traces, it would be very convenient to have something like Figure.update_traces(
Open Graph Description: Given that px produces figures which often have non-trivial numbers of fairly 'regular' axes/annotations/traces, it would be very convenient to have something like Figure.update_traces( X Description: Given that px produces figures which often have non-trivial numbers of fairly 'regular' axes/annotations/traces, it would be very convenient to have something like Figure.update_traces( <...
Opengraph URL: https://github.com/plotly/plotly.py/issues/1484
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"update_*() batch methods","articleBody":"Given that `px` produces figures which often have non-trivial numbers of fairly 'regular' axes/annotations/traces, it would be very convenient to have something like `Figure.update_traces( \u003cpatch\u003e, \u003cselector\u003e )`-type methods e.g. \r\n\r\n```python\r\npx.scatter(..., marginal_y=\"violin\").update_traces(\r\n patch=dict(marker_line_color=\"black\"), \r\n selector=dict(type=\"scatter\")\r\n)\r\n```\r\n\r\nIn this example, `px.scatter()` generates some `scatter` traces but also some `violin` ones, so the patch will only apply to the `scatter` traces. Also note that this example uses some magic-underscores from #1481 \r\n\r\nThis would also be very convenient for changing axis-level attributes in the case of a facetted `px` plot with many axes, ditto the `annotation`-based facet titles etc. In fact, I could see this being useful pretty much anywhere we have a collection of things either in a list (annotations, traces, shapes, etc) or with a number suffix (xaxis, yaxis, geo, scene, etc).\r\n\r\nA more uniform API where all the method are called `batch_update` like `Figure.data.batch_update()` or `Figure.layout.xaxis.batch_update()` might work as well? The latter case maybe less nice, but there is no \"collection\" of x-axes on which to attach the method there :)","author":{"url":"https://github.com/nicolaskruchten","@type":"Person","name":"nicolaskruchten"},"datePublished":"2019-03-28T19:51:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1484/plotly.py/issues/1484"}
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:77ae43f1-1677-b250-ee3b-a6eee7446645 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id C52A:26EC4C:1D8909B:2AC2D55:6A579B40 html-safe-nonce dd36ba73d4142da79c58d258a0e3b15d43fee6415fa689ee7449e47797daeaa1 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTJBOjI2RUM0QzoxRDg5MDlCOjJBQzJENTU6NkE1NzlCNDAiLCJ2aXNpdG9yX2lkIjoiNzM1NTMxMTI2MjA0MDMwMDM1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac abf106ad263a804e5973b12653febeeb5eb2fbdcd75722f206b5e77a33da3f39 hovercard-subject-tag issue:426677901 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/1484/issue_layout twitter:image https://opengraph.githubassets.com/69fb32e7ec94ce25b73f3b34300c5695b68ba1be760a815cb398b7c91bb12d0a/plotly/plotly.py/issues/1484 twitter:card summary_large_image og:image https://opengraph.githubassets.com/69fb32e7ec94ce25b73f3b34300c5695b68ba1be760a815cb398b7c91bb12d0a/plotly/plotly.py/issues/1484 og:image:alt Given that px produces figures which often have non-trivial numbers of fairly 'regular' axes/annotations/traces, it would be very convenient to have something like Figure.update_traces( og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username nicolaskruchten hostname github.com expected-hostname github.com None 017a07c29bdd8a37b5907fc9a689338deb7103b5af7f56714193b2700229b3df 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 0dd6847d644323df8f8c1368c065f9f630095e3b ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.