Skip to content

Conversation

@amoghcharan
Copy link

Tested locally for updated support of Matplotlib 3.7.3+ with patches.Rectangle() now requiring angle= as an input argument. This change also works with previous versions of Matplotlib (tested from 3.6.0+)

Current:
patches.Rectangle((x,y), width, length, angle, **kwargs)

TypeError: Rectangle.init() takes 4 positional arguments but 5 were given

Update:
patches.Rectangle((x,y), width, length, angle=angle, **kwargs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant