# Makie boxplot: stroke lines for boxes?

**URL:** <https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908>\
**Category:** Visualization\
**Tags:** bug, makie\
**Created:** [May 30, 2022, 10:19am UTC](https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908 "2022-05-30T10:19:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davide](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davide/32/52136_2.png) [@davide](https://discourse.julialang.org/u/davide)\
**Post date:** [May 30, 2022, 10:19am UTC](https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908/1 "2022-05-30T10:19:49Z")

</div>

Hi,

I would like to draw a boxplot with no fill color and just lines to define the box contour.

I am trying:

```julia
using GLMakie

xs = rand(1:3, 99)
ys = randn(99)

boxplot(xs, ys, color = :transparent, strokewidth = 1)

```

This produces _almost_ complete boxes: they are open on the left side.

Is it a bug or should I use something different?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [May 30, 2022, 11:25am UTC](https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908/2 "2022-05-30T11:25:20Z")

</div>

That’s actually a bug. I made a PR to fix it: [fix multi poly with rects by SimonDanisch · Pull Request #1999 · JuliaPlots/Makie.jl · GitHub](https://github.com/JuliaPlots/Makie.jl/pull/1999)

---

<div class="post-metadata">

**Author:** ![davide](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davide/32/52136_2.png) [@davide](https://discourse.julialang.org/u/davide)\
**Post date:** [June 1, 2022, 7:59am UTC](https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908/3 "2022-06-01T07:59:44Z")

</div>

Thanks @sdanisch, waiting for a new Makie release, I applied in my local `poly.jl` file (in Makie `src/basic_recipes`) the change in your commit (`LineSegments` instead of `PointBased()` in the line `to_line_segments(polygon) = convert_arguments(PointBased(), polygon)[1]`) and it works great.
