|
From: Tom J. <tj...@gm...> - 2007-11-27 07:53:41
|
I would like to plot a set of lines where the color of each line is parametrized. Then I want to add a colorbar to the plot. For example, suppose I plot y=x+b for various values of b. For each line, I would like to set the color to a particular value of b. When plotting, all b values are normalized and applied to a colormap. The colormap will show all colors... I can create a LineCollection containing all my lines...but I must specify the colors as RGB tuples....and I haven't figured out how to add a colorbar such that the scale on the colorbar will match the parametrized b values. Ideas? |