robotarium / robotarium_python_simulator

A Python simulator for the Robotarium! See your algorithm run on real robots!
MIT License
111 stars 59 forks source link

Support for Matplotlib 3.7.3+ #18

Open amoghcharan opened 10 months ago

amoghcharan commented 10 months ago

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)