# Attributes group in RecipesBase

**URL:** <https://discourse.julialang.org/t/attributes-group-in-recipesbase/46809>\
**Category:** General Usage\
**Tags:** plots, recipe\
**Created:** [September 17, 2020, 11:30pm UTC](https://discourse.julialang.org/t/attributes-group-in-recipesbase/46809 "2020-09-17T23:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthieu](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Post date:** [September 17, 2020, 11:30pm UTC](https://discourse.julialang.org/t/attributes-group-in-recipesbase/46809/1 "2020-09-17T23:30:48Z")

</div>

I am trying to set the attribute `group` for a recipe in Recipes Base.jl. However, it looks like the attribute `group` is ignored

```julia
using RecipesBase, Plots
@userplot MyPlot
@recipe function f(bs::MyPlot)
    group := bs.args[3]
    bs.args[1], bs.args[2]
end

x = [1, 2, 3, 4]
y = [1, 2, 1, 2]
group = [1, 1, 2, 2]
myplot(x, y, group)
# does not give the same thing as
plot(x, y, group = group)

```

---

<div class="post-metadata">

**Author:** ![sztal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sztal/32/215817_2.png) [@sztal](https://discourse.julialang.org/u/sztal)\
**Post date:** [March 16, 2025, 12:28pm UTC](https://discourse.julialang.org/t/attributes-group-in-recipesbase/46809/2 "2025-03-16T12:28:58Z")

</div>

Very good question, I ran into the same problem. Any ideas for what may cause that?
