I can do this using rectangle('Position', [-1, 1, 1, 1], 'Curvature', 0.2)
in MATLAB.
There’s Box
with cornerradius
Box | Makie. But you can’t plot that into an Axis
. For that you could make a heler function that constructs a BezierPath
with four EllipticalArc
corners and use poly
on that
1 Like