I am using Algebra of Graphics to plot multiple datasets in the following way:
function filterPlot(filterPos)
#filterPos - a vector of vectors
dataForPlot = data(DataFrame(xx = 1:length(filterPos[1]), yy = filterPos[1]))
for thing in filterPos[2:end]
plotFilter = DataFrame(xx = 1:length(thing), yy = thing)
dataForPlot =dataForPlot + data(plotFilter)
end
dataForPlot *= mapping(:1=>(t->t) ,:2 => (t->t)); # data(toBePlotted)*mapping(:a =>(t->t) =>"Time (d)",:b => (t->t)=>"Weight")*linear();
plaxis = (xlabel = xlab, ylabel = ylab)
drawing = draw(dataForPlot;axis = plaxis,palettes=(; color=ColorSchemes.Set1_3.colors))
end
Note that filterPos can have arbitrary many data sets in it. Ideally I would like each one of them displayed in a separate colour (one that I do not need to set manually).
I know matplotlib automatically colours things. Is there something like that in Makie or AlgebraofGraphics?