-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
Description
Problem
- I'm always frustrated when
matplotlib.patches.Rectangle
does 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.FancyBboxPatch
does 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)