Title: [Bug]: Missing backcompat for backends not supporting hatchcolors in draw_quad_mesh · Issue #29883 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Missing backcompat for backends not supporting hatchcolors in draw_quad_mesh · Issue #29883 · matplotlib/matplotlib
X Title: [Bug]: Missing backcompat for backends not supporting hatchcolors in draw_quad_mesh · Issue #29883 · matplotlib/matplotlib
Description: Bug summary #29044 added a hatchcolors kwarg to backends' draw_path_collection and draw_quad_mesh; this includes an backcompat/escape hatch in draw_path_collection for third-party backends (e.g., mplcairo) that don't support for that kwa...
Open Graph Description: Bug summary #29044 added a hatchcolors kwarg to backends' draw_path_collection and draw_quad_mesh; this includes an backcompat/escape hatch in draw_path_collection for third-party backends (e.g., m...
X Description: Bug summary #29044 added a hatchcolors kwarg to backends' draw_path_collection and draw_quad_mesh; this includes an backcompat/escape hatch in draw_path_collection for third-party backends (e.g...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29883
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Missing backcompat for backends not supporting hatchcolors in draw_quad_mesh","articleBody":"### Bug summary\n\n#29044 added a hatchcolors kwarg to backends' draw_path_collection and draw_quad_mesh; this includes an backcompat/escape hatch in draw_path_collection for third-party backends (e.g., mplcairo) that don't support for that kwarg (see discussion around https://github.com/matplotlib/matplotlib/pull/29044#issuecomment-2749198407 for why I think this should be in matplotlib and not in mplcairo); unfortunately the same escape hatch is also needed for draw_quad_mesh and is missing there.\n\n### Code for reproduction\n\n```Python\n# using mplcairo.qt, for example\nfrom pylab import *; hist2d(rand(10), rand(10))\n```\n\n### Actual outcome\n\ntraceback with\n```\n[...]\nTypeError: draw_quad_mesh(): incompatible function arguments. The following argument types are supported:\n 1. (self: mplcairo._mplcairo.GraphicsContextRendererCairo, arg0: mplcairo._mplcairo.GraphicsContextRendererCairo, arg1: object, arg2: int, arg3: int, arg4: numpy.ndarray[numpy.float64], arg5: numpy.ndarray[numpy.float64], arg6: object, arg7: numpy.ndarray[numpy.float64], arg8: object, arg9: numpy.ndarray[numpy.float64]) -\u003e None\n\nInvoked with:\n[...] kwargs: hatchcolors=[...]\n```\n\n### Expected outcome\n\nno error\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nany\n\n### Matplotlib Version\n\n3.11.0.dev612+g77993d5536\n\n### Matplotlib Backend\n\nmodule://mplcairo.qt\n\n### Python version\n\n3.13\n\n### Jupyter version\n\nno\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2025-04-07T16:42:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/29883/matplotlib/issues/29883"}
| 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:99768c66-7ed6-ae2c-ae86-42ef85f97c09 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6C8:1C16FD:25DDCC:32F7D5:6A5189B1 |
| html-safe-nonce | 3f355d7fa8c8317044cf0a52914cb90638a0948d9d205c84a4fb0964a6052c18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkM4OjFDMTZGRDoyNUREQ0M6MzJGN0Q1OjZBNTE4OUIxIiwidmlzaXRvcl9pZCI6IjgzMjU4MTM5MTc3NjM4NjUwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5ec7566ed2af19574c39866050e4ccc5c9174c10c7ce28195c8bf297e1180ca0 |
| hovercard-subject-tag | issue:2977431609 |
| 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/29883/issue_layout |
| twitter:image | https://opengraph.githubassets.com/daced0157812cc65ea73505cd1aac30857714b7ca8d2bc1916988450dfeafb52/matplotlib/matplotlib/issues/29883 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/daced0157812cc65ea73505cd1aac30857714b7ca8d2bc1916988450dfeafb52/matplotlib/matplotlib/issues/29883 |
| og:image:alt | Bug summary #29044 added a hatchcolors kwarg to backends' draw_path_collection and draw_quad_mesh; this includes an backcompat/escape hatch in draw_path_collection for third-party backends (e.g., m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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 | cb77a7b8b06cd86c243be33fd8e7922d70a9d243 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width