AlgebraOfGraphics.jl icon indicating copy to clipboard operation
AlgebraOfGraphics.jl copied to clipboard

How can I hide the legend title?

Open zdlspace0528 opened this issue 3 years ago • 1 comments

Dear all,

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

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 How can I hide the legend title “Species”? I try to use titlevisible = false, but it does not work.

zdlspace0528 avatar Aug 08 '22 15:08 zdlspace0528

Try color = :Species => "" and then probably legend = (; titleposition = :left) in draw.

greimel avatar Aug 08 '22 20:08 greimel