Jakob
1
Hi everyone,
is there a quick way to disable the legend for a plot created with AOG?
I know that you can pass legend attributes to draw
, like so:
d = (;x=[1,2,3], y=[1,2,3], c=["a", "b", "c"])
p = data(d) * mapping(:x, :y, color=:c) * visual(BarPlot)
draw(p; legend=(;position=:bottom))
But I didn’t find an overview of the options that can be passed to that.
Thanks!
I think the legend is baked into draw
. It’s not as quick as a flag, but you could use draw!
instead:
f = Figure()
draw!(f, p)
f
But I didn’t find an overview of the options that can be passed to that.
I usually just go to the docsctrings, or use help_attributes
for things like Scatter
, BarPlot
, etc.
1 Like
Jakob
3
That makes sense and I guess using draw!
isn’t too bad. I’ll remember to look at the Makie docstrings next time. Thanks for indulging my questions