Title: [MNT]: Use more-inclusive language in _trirefine.py · Issue #32039 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Use more-inclusive language in _trirefine.py · Issue #32039 · matplotlib/matplotlib
X Title: [MNT]: Use more-inclusive language in _trirefine.py · Issue #32039 · matplotlib/matplotlib
Description: Summary Currently, both 'agg_scanline_boolean_algebra.h' and '_trirefine.py' use "master"/"slave" terminology: agg_scanline_boolean_algebra.h (Comments only) // Prepare the scanline generators. // Here "sg1" is master, "sg2" is `slave`. ...
Open Graph Description: Summary Currently, both 'agg_scanline_boolean_algebra.h' and '_trirefine.py' use "master"/"slave" terminology: agg_scanline_boolean_algebra.h (Comments only) // Prepare the scanline generators. // ...
X Description: Summary Currently, both 'agg_scanline_boolean_algebra.h' and '_trirefine.py' use "master"/"slave" terminology: agg_scanline_boolean_algebra.h (Comments only) // ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32039
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Use more-inclusive language in _trirefine.py","articleBody":"### Summary\n\nCurrently, both 'agg_scanline_boolean_algebra.h' and '_trirefine.py' use \"master\"/\"slave\" terminology:\n\n**agg_scanline_boolean_algebra.h** (Comments only)\n\n```c\n// Prepare the scanline generators.\n// Here \"sg1\" is master, \"sg2\" is `slave`.\n\n// Synchronize \"slave\" with \"master\"\n\n// Advance the \"master\"\n```\n\n**_trirefine.py** (Comments and variable names)\n\n```python\n# We first build 2 * ntri arrays of edge starting nodes (edge_elems,\n# edge_apexes); we then extract only the masters to avoid overlaps.\n# The so-called 'master' is the triangle with biggest index\n# The 'slave' is the triangle with lower index\n# (can be -1 if border edge)\n# For slave and master we will identify the apex pointing to the edge\n# start\n…\n```\n \nI recognize that #21371 mentioned a desire to not touch agg (although this may have changed - there have been recent changes). I'm not sure if this applies to '_trirefine.py' or not.\n\n\"child\" already has meaning in '_trirefine.py'. Perhaps 'major'/'minor' could work here? Or maybe there is a mathematical term to mean \"biggest index\" \"lower index\".\n\n(Tagging @story645 as we chatted about this)\n\n### Proposed fix\n\n_No response_","author":{"url":"https://github.com/iccir","@type":"Person","name":"iccir"},"datePublished":"2026-07-13T03:25:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/32039/matplotlib/issues/32039"}
| 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:e3b9399f-af1c-3338-a0a1-bde3c5fea75f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA66:F3A37:5F220C:804920:6A62D953 |
| html-safe-nonce | 713385d6938f5803791fbb1d35ec5b30013ed7f041d6410c9db6ed17983dacea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTY2OkYzQTM3OjVGMjIwQzo4MDQ5MjA6NkE2MkQ5NTMiLCJ2aXNpdG9yX2lkIjoiNjk3MzU3NDI4NTMwNDcxNTYwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c80433905fab0ede301afd0f91931faa10b01cb9612a723729f73028d5da2374 |
| hovercard-subject-tag | issue:4870098203 |
| 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/32039/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26c381105551d81aaf51c79c80cd7e7f9f28bc76d4ce598cef7a20d59a7c42b9/matplotlib/matplotlib/issues/32039 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26c381105551d81aaf51c79c80cd7e7f9f28bc76d4ce598cef7a20d59a7c42b9/matplotlib/matplotlib/issues/32039 |
| og:image:alt | Summary Currently, both 'agg_scanline_boolean_algebra.h' and '_trirefine.py' use "master"/"slave" terminology: agg_scanline_boolean_algebra.h (Comments only) // Prepare the scanline generators. // ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iccir |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| 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 | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width