Skip to content

Matplotlib 3.6 compatibility football scatter #72

Description

@andrewRowlinson

Matplotlib 3.6 changed the argument transOffset to offset_transform:
matplotlib/matplotlib#21965

With the current code the following error occurs when creating the docs:
TypeError: HandlerFootball.create_collection() got an unexpected keyword argument 'offset_transform'.

This code needs to be changed for compatibility with Matplotlib 3.6:

return type(orig_handle)([football_hexagon_marker, football_pentagon_marker],
sizes=sizes,
offsets=offsets,
transOffset=transOffset,
facecolors=[facecolor, edgecolor],
edgecolors=edgecolor)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions