# How to plot a rounded rectangle with \`Makie\`?

**URL:** https://discourse.julialang.org/t/how-to-plot-a-rounded-rectangle-with-makie/116457
**Category:** Visualization
**Tags:** question, plotting, makie
**Created:** [July 1, 2024, 7:31am UTC](https://discourse.julialang.org/t/how-to-plot-a-rounded-rectangle-with-makie/116457 "2024-07-01T07:31:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)
#### Post date: [July 1, 2024, 7:31am UTC](https://discourse.julialang.org/t/how-to-plot-a-rounded-rectangle-with-makie/116457/1 "2024-07-01T07:31:43Z")

</div>

I can do this using `rectangle('Position', [-1, 1, 1, 1], 'Curvature', 0.2)` in MATLAB.

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [July 1, 2024, 12:25pm UTC](https://discourse.julialang.org/t/how-to-plot-a-rounded-rectangle-with-makie/116457/2 "2024-07-01T12:25:46Z")

</div>

There’s `Box` with `cornerradius` [Box | Makie](https://docs.makie.org/stable/reference/blocks/box#cornerradius). 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
