Scatter y against x coloured by score, then add a colorbar labelled "Score" so the colour scale can actually be read.
y
x
score
"Score"
Return the Figure: a colorbar lives in its own Axes, so the answer is no longer a single Axes.
This one's part of Premium. Unlock the full Matplotlib track plus every other premium problem on the site.
solve(...)