# Order of legend entries in AlgebraOfGraphics

**URL:** <https://discourse.julialang.org/t/order-of-legend-entries-in-algebraofgraphics/77753>\
**Category:** Visualization\
**Tags:** algebraofgraphics\
**Created:** [March 11, 2022, 2:45pm UTC](https://discourse.julialang.org/t/order-of-legend-entries-in-algebraofgraphics/77753 "2022-03-11T14:45:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![icweaver](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/icweaver/32/45764_2.png) [@icweaver](https://discourse.julialang.org/u/icweaver)\
**Post date:** [March 14, 2022, 3:22pm UTC](https://discourse.julialang.org/t/order-of-legend-entries-in-algebraofgraphics/77753/4 "2022-03-14T15:22:53Z")

</div>

I don’t think I’ve seen a dictionary be used for a [palette](https://makie.juliaplots.org/stable/documentation/theming/index.html#palettes) before. Could you just pass your vector of colors directly?

```julia
draw(p, palettes=(; color=[:red, :green, :blue]))

```

 ![index](https://global.discourse-cdn.com/julialang/original/3X/e/f/ef40b03667243ad9848f38be122810bac6dd13dc.png)

---

_[View the full topic](https://discourse.julialang.org/t/order-of-legend-entries-in-algebraofgraphics/77753)._
