title: Python: Map float range [0.0, 1.0] to color range [red, green]?
body: <p>I have a function that returns float results in the interval [0.0, 1.0]. I would like to visualize the results using color ranging from red for 0.0 to green for 1.0 (maybe through yellow for 0.5). How could I do that? Thanks!</p>