# Question about AlgebraOfGraphics

**URL:** <https://discourse.julialang.org/t/question-about-algebraofgraphics/85481>\
**Category:** General Usage\
**Tags:** algebraofgraphics\
**Created:** [August 8, 2022, 2:48pm UTC](https://discourse.julialang.org/t/question-about-algebraofgraphics/85481 "2022-08-08T14:48:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raymond](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raymond/32/36557_2.png) [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Post date:** [August 8, 2022, 2:48pm UTC](https://discourse.julialang.org/t/question-about-algebraofgraphics/85481/1 "2022-08-08T14:48:13Z")

</div>

Dear all,

When I use AlgebraOfGraphics.jl, How can I hide the legend title? Here is an example.

```julia
using RDatasets, AlgebraOfGraphics, CairoMakie
df = dataset("datasets", "iris")
plt = data(df) * mapping(:Species, :SepalLength, color = :Species) * visual(Violin)
fg = draw(plt; legend = (position = :bottom, titlevisible = false, framevisible = false))

```

 ![截屏2022-08-08 22.46.58](https://global.discourse-cdn.com/julialang/original/3X/6/a/6af31d8e3f77078e3e1ac7bc52db98aade3281f0.png)

How can I hide the legend title “Species”? I try to use `titlevisible = false`, but it does not work.

---

<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:** [August 8, 2022, 6:29pm UTC](https://discourse.julialang.org/t/question-about-algebraofgraphics/85481/2 "2022-08-08T18:29:11Z")

</div>

> [@Raymond](#):
>
> `color = :Species`

Just a guess but could you try `color = :Species => nothing`?

---

<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:** [August 8, 2022, 8:40pm UTC](https://discourse.julialang.org/t/question-about-algebraofgraphics/85481/3 "2022-08-08T20:40:40Z")

</div>

Oh yea, I think that (or an empty string) was the recommended workaround until a fix could be made upstream

> <https://github.com/JuliaPlots/AlgebraOfGraphics.jl/issues/309>
>
> Following up from slack, \`titlevisible\` seems to be ignored when trying the lege…nd tweaking capabilities introduced in #291
> 
> \`\`\`julia
> using AlgebraOfGraphics, CairoMakie
> 
> N = 30
> 
> df = DataFrame(
> Fruit = rand(\["apple", "pear", "banana", "watermelon"\], N),
> Country = rand(\["US", "CA", "MX"\], N),
> Weight = rand(1:10, N),
> )
> 
> plt = data(df) \*
> mapping(:Fruit, :Weight, dodge=:Country, color=:Country) \*
> visual(BarPlot)
> 
> draw(plt, legend=(position=:top, titlevisible=false))
> \`\`\`
> 
> !\[index\](https://user-images.githubusercontent.com/25312320/144681465-5323463c-afc6-4235-a2e8-5acd0d1c9352.png)
