How to color points in scatter plot by value?

Impressive!
How should I add lines between points in a plot like this?
Can this be done with PGFPlotsX?

This can also be done using Makie.jl: