Matplotlib coloured scatter legend

Viewed 32

I would like to make a scatter graph using matplot lib of one line where the points are coloured according to a third value. I need to add a legend to explain what the colours mean. For example a white point means '0' and a red point means '5'. This seems like a really obvious thing to do but I cannot find any information anywhere online about how to do it.

0 Answers
Related