Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Milestone
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 kwarg (see discussion around#29044 (comment) 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.
Code for reproduction
# using mplcairo.qt, for examplefrompylabimport*;hist2d(rand(10),rand(10))
Actual outcome
traceback with
[...]TypeError: draw_quad_mesh(): incompatible function arguments. The following argument types are supported: 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]) -> NoneInvoked with:[...] kwargs: hatchcolors=[...]
Expected outcome
no error
Additional information
No response
Operating system
any
Matplotlib Version
3.11.0.dev612+g77993d5536
Matplotlib Backend
module://mplcairo.qt
Python version
3.13
Jupyter version
no
Installation
git checkout