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

Doc: How to set a theme

Open ptoche opened this issue 4 years ago • 0 comments

An example of how to set a theme would be greatly appreciated. Something like this or better:

using AlgebraOfGraphics, CairoMakie
using Colors  # for the palette
set_aog_theme!()
update_theme!(
    Theme(
        palette = (color = ["#1f78b4", "#ff7f00", "#029e73"],) # DON'T FORGET THE COMMA HERE!
    )
)

df = (x=rand(["a", "b", "c"], 100), y=rand(100))
plt = data(df) * mapping(:x, :y, color = :x) * visual(BoxPlot)
draw(plt)

ptoche avatar Jul 27 '21 07:07 ptoche