Makie: LinePattern in Box

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 :slight_smile:

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

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

Although, it seems that you solve your problem, it might be useful to take a look at this.

2 Likes