# Makie: LinePattern in Box

**URL:** <https://discourse.julialang.org/t/makie-linepattern-in-box/65663>\
**Category:** Visualization\
**Tags:** question, plotting, makie\
**Created:** [August 2, 2021, 7:48am UTC](https://discourse.julialang.org/t/makie-linepattern-in-box/65663 "2021-08-02T07:48:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wst](https://avatars.discourse-cdn.com/v4/letter/w/e79b87/32.png) [@wst](https://discourse.julialang.org/u/wst)\
**Post date:** [August 2, 2021, 7:48am UTC](https://discourse.julialang.org/t/makie-linepattern-in-box/65663/1 "2021-08-02T07:48:33Z")

</div>

Hello everyone,

to get better understanding of how Makie works I’m trying to visualize stacked composite-laminates.  
My current approach is to draw a `Box` for each lamina, which works fine. Now I want to add a hatching to each lamina that visualizes the corresponding fibre-orientation. In the Makie-Docu I stumbled over `LinePattern`, which sounds like its what I’m looking for.  
So are there any examples of how to add a `LinePattern` to a `Box`?  
Or maybe someone can explain how to do this (if its even possible)?

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![wst](https://avatars.discourse-cdn.com/v4/letter/w/e79b87/32.png) [@wst](https://discourse.julialang.org/u/wst)\
**Post date:** [August 2, 2021, 8:30am UTC](https://discourse.julialang.org/t/makie-linepattern-in-box/65663/2 "2021-08-02T08:30:37Z")

</div>

In case someone trys to do something similar:  
Passing `Makie.LinePattern` as the color-argument of `Box` works fine.  
i. e.:

```julia
Box(fig, color=Makie.LinePattern(; direction=Vec2(1, 2)))

```

---

<div class="post-metadata">

**Author:** ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Post date:** [August 2, 2021, 12:07pm UTC](https://discourse.julialang.org/t/makie-linepattern-in-box/65663/3 "2021-08-02T12:07:41Z")

</div>

Although, it seems that you solve your problem, it might be useful to take a [look at this.](https://lazarusa.github.io/BeautifulMakie/StatsPlots/strippedBar/)

 ![strippedBar](https://global.discourse-cdn.com/julialang/original/3X/c/6/c63880fe0526472be32bee4fb23eaf0d53d37a3a.png)
