# How to make \`barplot\` in makie show different fill styles?

**URL:** <https://discourse.julialang.org/t/how-to-make-barplot-in-makie-show-different-fill-styles/116464>\
**Category:** Visualization\
**Tags:** question, plotting, makie\
**Created:** [July 1, 2024, 9:56am UTC](https://discourse.julialang.org/t/how-to-make-barplot-in-makie-show-different-fill-styles/116464 "2024-07-01T09:56:02Z")\
**Posts on this page:** 3\
**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, 9:56am UTC](https://discourse.julialang.org/t/how-to-make-barplot-in-makie-show-different-fill-styles/116464/1 "2024-07-01T09:56:02Z")

</div>

> **[barplot | Makie](https://docs.makie.org/v0.21/reference/plots/barplot#barplot)**
>
> Create impressive data visualizations with Makie, the plotting ecosystem for the Julia language. Build aesthetic plots with beautiful customizable themes, control every last detail of publication quality vector graphics, assemble complex layouts and...

I want the bars in a barplot to have different fill styles instead of just being filled with a solid color. For example, I want to have grid-like stripes, zebra stripes with two alternating colors, and so on. How can I achieve this?

Thanks!

---

<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:17pm UTC](https://discourse.julialang.org/t/how-to-make-barplot-in-makie-show-different-fill-styles/116464/2 "2024-07-01T12:17:42Z")

</div>

```julia
barplot(1:3, color = Pattern("/", background_color = :red, linecolor = :cyan))

```

But you need one barplot per pattern I think, I don’t think arrays are currently supported

 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/8/e82bfbcf748890b1dd4bad2f8573768bebb7aa81.png)

---

<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, 1:29pm UTC](https://discourse.julialang.org/t/how-to-make-barplot-in-makie-show-different-fill-styles/116464/3 "2024-07-01T13:29:00Z")

</div>

Nice! Thanks!
