How to make this plot in Julia?

Here’s the solution for AoG

let
	scatterlines = (visual(Scatter) + visual(Lines)) * mapping(:time, :value, color = :name)
	annotations  = visual(Annotations) * mapping( :name => verbatim, position=(:time, :value) => Point, color = :name)

	plt = data(d) * (scatterlines + annotations)
		
	draw(plt)
end

It’s a bit hidden in the docs: http://juliaplots.org/AlgebraOfGraphics.jl/stable/gallery/gallery/scales/prescaled_data/#Pre-scaled-data

This PR add multiargument method to annotations by piever · Pull Request #1193 · MakieOrg/Makie.jl · GitHub will allow the code to be more like what you attempted.

6 Likes