Plotting 2*N array giving a name to each point

One way:

using Plots, Printf
x = LinRange(0,1,19)
v = [(rand(0:9),rand(0:9)) for _ in 1:19]

plot(legend=:outerright)
for (i,t) in pairs(v)
    scatter!(t, label=@sprintf("%.2f",x[i]))
end
Plots.current()
1 Like