Title: [Bug]: art3d.py set_data_3d; "RuntimeError- must be a sequence" · Issue #25544 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: art3d.py set_data_3d; "RuntimeError- must be a sequence" · Issue #25544 · matplotlib/matplotlib
X Title: [Bug]: art3d.py set_data_3d; "RuntimeError- must be a sequence" · Issue #25544 · matplotlib/matplotlib
Description: Bug summary Breaks single point drawing. set_data_3d() changed to: def set_data_3d(self, *args): if len(args) == 1: args = args[0] for name, xyz in zip('xyz', args): if not np.iterable(xyz): raise RuntimeError(f'{name} must be a sequence...
Open Graph Description: Bug summary Breaks single point drawing. set_data_3d() changed to: def set_data_3d(self, *args): if len(args) == 1: args = args[0] for name, xyz in zip('xyz', args): if not np.iterable(xyz): raise ...
X Description: Bug summary Breaks single point drawing. set_data_3d() changed to: def set_data_3d(self, *args): if len(args) == 1: args = args[0] for name, xyz in zip('xyz', args): if not np.iterable(xyz)...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25544
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: art3d.py set_data_3d; \"RuntimeError- must be a sequence\"","articleBody":"### Bug summary\n\nBreaks single point drawing. \r\n**set_data_3d() changed to:**\r\n\r\n```\r\n def set_data_3d(self, *args): \r\n if len(args) == 1:\r\n args = args[0]\r\n for name, xyz in zip('xyz', args):\r\n if not np.iterable(xyz):\r\n raise RuntimeError(f'{name} must be a sequence')\r\n self._verts3d = args\r\n self.stale = True\r\n```\r\n\r\n**from previous version:**\r\n```\r\n def set_data_3d(self, *args):\r\n if len(args) == 1:\r\n self._verts3d = args[0]\r\n else:\r\n self._verts3d = args\r\n self.stale = True\r\n```\r\n\r\n\n\n### Code for reproduction\n\n```python\ne.g.\r\nset_data_3d(0.94, -0.26, 0.22)\n```\n\n\n### Actual outcome\n\n RuntimeError: must be a sequence\n\n### Expected outcome\n\nsetting new data using set_data_3d\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.7.1\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n3.10\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nNone","author":{"url":"https://github.com/Drozdman-1","@type":"Person","name":"Drozdman-1"},"datePublished":"2023-03-25T02:48:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/25544/matplotlib/issues/25544"}
| 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:4c201f94-022c-11c1-a0db-922694556adc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9100:31E744:C6F015:10EF5AA:6A520E4D |
| html-safe-nonce | 1d2fac1da58e6b5db8ba5af68772c624b97bb6447a781b2023e7f36545ebceb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTAwOjMxRTc0NDpDNkYwMTU6MTBFRjVBQTo2QTUyMEU0RCIsInZpc2l0b3JfaWQiOiIxNTEwODU1NjU4NDA4MzgyMDMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0addc8e0f296c138758adc16874b6b3324f718dfdc97cad0119dbfe2eca4922b |
| hovercard-subject-tag | issue:1640337709 |
| 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/matplotlib/matplotlib/25544/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92c70aa75fc7c6eac50261ee2433859b0b992c8aae4ff882458e1a2c0db32c42/matplotlib/matplotlib/issues/25544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92c70aa75fc7c6eac50261ee2433859b0b992c8aae4ff882458e1a2c0db32c42/matplotlib/matplotlib/issues/25544 |
| og:image:alt | Bug summary Breaks single point drawing. set_data_3d() changed to: def set_data_3d(self, *args): if len(args) == 1: args = args[0] for name, xyz in zip('xyz', args): if not np.iterable(xyz): raise ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Drozdman-1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width