Title: [Bug]: Typo in method name: contains_branch_separately · Issue #30474 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Typo in method name: contains_branch_separately · Issue #30474 · matplotlib/matplotlib
X Title: [Bug]: Typo in method name: contains_branch_separately · Issue #30474 · matplotlib/matplotlib
Description: Bug summary There is a typo in the method name contains_branch_seperately from lib/matplotlib/transforms.py: matplotlib/lib/matplotlib/transforms.py Line 1421 in a3fcf0b def contains_branch_seperately(self, other_transform): This should ...
Open Graph Description: Bug summary There is a typo in the method name contains_branch_seperately from lib/matplotlib/transforms.py: matplotlib/lib/matplotlib/transforms.py Line 1421 in a3fcf0b def contains_branch_seperat...
X Description: Bug summary There is a typo in the method name contains_branch_seperately from lib/matplotlib/transforms.py: matplotlib/lib/matplotlib/transforms.py Line 1421 in a3fcf0b def contains_branch_seperat...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30474
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Typo in method name: contains_branch_separately","articleBody":"### Bug summary\n\nThere is a typo in the method name `contains_branch_seperately` from `lib/matplotlib/transforms.py`: https://github.com/matplotlib/matplotlib/blob/a3fcf0b7c4e5270de3865ca97d23751c8a1c5b2d/lib/matplotlib/transforms.py#L1421\n\nThis should be spelled `contains_branch_separately` (`separate` not `seperate`).\n\nSince this is a public API method, I propose:\n1. Rename the method to `contains_branch_separately` (correct spelling)\n2. Create an alias from the old `contains_branch_seperately` spelling to the new method for backwards compatibility\n3. Add a deprecation warning when the old name is used\n4. Update any internal uses and documentation to use the correct spelling\n\nHappy to prepare a PR for this if that makes sense!\n\n### Code for reproduction\n\n```Python\n# Copied from lib/matplotlib/transforms.py\n\n def contains_branch_seperately(self, other_transform):\n \"\"\"\n Return whether the given branch is a sub-tree of this transform on\n each separate dimension.\n\n A common use for this method is to identify if a transform is a blended\n transform containing an Axes' data transform. e.g.::\n\n x_isdata, y_isdata = trans.contains_branch_seperately(ax.transData)\n\n \"\"\"\n if self.output_dims != 2:\n raise ValueError('contains_branch_seperately only supports '\n 'transforms with 2 output dimensions')\n # for a non-blended transform each separate dimension is the same, so\n # just return the appropriate shape.\n return (self.contains_branch(other_transform), ) * 2\n```\n\n### Actual outcome\n\nCode runs as expected, but method name contains a typo.\n\n### Expected outcome\n\nMethod name should be correctly spelled as `contains_branch_separately`\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\nCurrent `main` branch, as of a3fcf0b (25 August 2025)\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/brchristian","@type":"Person","name":"brchristian"},"datePublished":"2025-08-26T16:06:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/30474/matplotlib/issues/30474"}
| 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:02a49c41-1a3b-0ad9-6135-b354f85b8526 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB6E:1FF3C2:E9A6D8:138C89A:6A529261 |
| html-safe-nonce | 9962ac7b510d45f643a1f95307bf056686d70888337811018faba188d5937948 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjZFOjFGRjNDMjpFOUE2RDg6MTM4Qzg5QTo2QTUyOTI2MSIsInZpc2l0b3JfaWQiOiIxODI2ODY3Mjk2MDc0ODk1OTY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f1356d893ec90a7eb42d2fb25b31eb18cbec445d9a231fded17eb8e34b1f2058 |
| hovercard-subject-tag | issue:3356280635 |
| 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/30474/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76cec2bb99ad6a66c5265c8c46d8195410f18545a4764d79af63ba085bf153e2/matplotlib/matplotlib/issues/30474 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76cec2bb99ad6a66c5265c8c46d8195410f18545a4764d79af63ba085bf153e2/matplotlib/matplotlib/issues/30474 |
| og:image:alt | Bug summary There is a typo in the method name contains_branch_seperately from lib/matplotlib/transforms.py: matplotlib/lib/matplotlib/transforms.py Line 1421 in a3fcf0b def contains_branch_seperat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brchristian |
| 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