-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Open
Labels
Description
Problem
- I'm always frustrated when
matplotlib.patches.Rectangledoes not round the corners of the rectangle because it requires padding and other rectangle-irrelevant values. - I would like it if there is a clsas or method like
matplotlib.patches.RoundedRectangle(xy, width, height, corner_radius, **kwargs)that can take any radius <= min(width, height) becausematplotlib.patches.FancyBboxPatchdoes not round the rectangle as much as possible. - Here is a sample image of what I am asking for

Proposed solution
Please add/implement matplotlib.patches.RoundedRectangle(xy, width, height, corner_radius, **kwargs)