matplotlib / data-prototype

https://matplotlib.org/data-prototype
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Add PatchWrappers for Annulus, Ellipse, Circle, Arc #25

Open ksunden opened 1 year ago

ksunden commented 1 year ago

Arc is still broken due to lack of setters in mpl proper

The simple patch example has been modified to use the new wrappers.

There is still a tension that I think needs to be addressed, particularly around initializing.

Shifting initialization to the subclasses may be necessary due to differences in the expected signatures/conditions (e.g. that width must be less than the semiminor axis for Annulus)

The getattr wrapping makes this harder than I think it needs to be due to cases which hit infinite recursion...