Title: [Bug]: Incorrect offsets and scaling of EllipseCollection · Issue #30866 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Incorrect offsets and scaling of EllipseCollection · Issue #30866 · matplotlib/matplotlib
X Title: [Bug]: Incorrect offsets and scaling of EllipseCollection · Issue #30866 · matplotlib/matplotlib
Description: Bug summary This is a regression bug. The position and scaling of EllipseCollection do not follow the specification of offsets. Code for reproduction import matplotlib.pyplot as plt import numpy as np from matplotlib.collections import E...
Open Graph Description: Bug summary This is a regression bug. The position and scaling of EllipseCollection do not follow the specification of offsets. Code for reproduction import matplotlib.pyplot as plt import numpy as...
X Description: Bug summary This is a regression bug. The position and scaling of EllipseCollection do not follow the specification of offsets. Code for reproduction import matplotlib.pyplot as plt import numpy as...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30866
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Incorrect offsets and scaling of EllipseCollection","articleBody":"### Bug summary\n\nThis is a regression bug. The position and scaling of `EllipseCollection` do not follow the specification of `offsets`.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom matplotlib.collections import EllipseCollection\n\nx = np.arange(2)\ny = np.arange(2)\nX, Y = np.meshgrid(x, y)\n\nXY = np.column_stack((np.zeros_like(X.ravel()), Y.ravel()))\n\nfig, ax = plt.subplots()\n\nec = EllipseCollection(X, Y, X, units='x', offsets=XY, offset_transform=ax.transData) \nax.add_collection(ec)\nplt.show()\n```\n\n### Actual outcome\n\n\u003cimg width=\"547\" height=\"413\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/34b3812c-611e-4622-ab89-51b9ca75a84c\" /\u003e\n\n### Expected outcome\n\n\u003cimg width=\"558\" height=\"418\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/4a34065c-c32f-4c6f-a7d1-4bd8c025a579\" /\u003e\n\n### Additional information\n\nThis works in v3.10.8.\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n0.2.0.dev53474+unknown.g9e210e864\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nNone","author":{"url":"https://github.com/williamlus","@type":"Person","name":"williamlus"},"datePublished":"2025-12-16T07:59:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/30866/matplotlib/issues/30866"}
| 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:b1ad4626-f4c8-cc43-a67b-6b5124af4f57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E366:8E3D:17BABD3:1F3CA91:6A52BD40 |
| html-safe-nonce | 0d950ea4c7740beec16fd00fa148a5ec329610c9967e51b125895cc6a07f1aa7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzY2OjhFM0Q6MTdCQUJEMzoxRjNDQTkxOjZBNTJCRDQwIiwidmlzaXRvcl9pZCI6IjgwNTIwMDc4ODQzMzMxNjk5ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4dc8f0e8b6f13c446901de065872c63b601415899d00f8e4f6b5de4f58c79bec |
| hovercard-subject-tag | issue:3733639940 |
| 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/30866/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea793f1f1c3fdc1e187ef42456435a9a0373aa4a6ea669c40da0e4fe98bfb979/matplotlib/matplotlib/issues/30866 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea793f1f1c3fdc1e187ef42456435a9a0373aa4a6ea669c40da0e4fe98bfb979/matplotlib/matplotlib/issues/30866 |
| og:image:alt | Bug summary This is a regression bug. The position and scaling of EllipseCollection do not follow the specification of offsets. Code for reproduction import matplotlib.pyplot as plt import numpy as... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | williamlus |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width