Colorbar tweaking

Source code

using AlgebraOfGraphics, CairoMakie

To tweak the position and appearance of the colorbar, simply use the colorbar keyword when plotting. For example

df = (x=rand(100), y=rand(100), z=rand(100))
plt = data(df) * mapping(:x, :y, color=:z)
draw(plt)
fg = draw(plt, colorbar=(position=:top, size=25))

To change the colormap, pass the colormap keyword to visual. For example

plt = visual(Scatter, colormap=:thermal) * data(df) * mapping(:x, :y, color=:z)
draw(plt)

This page was generated using DemoCards.jl and Literate.jl.