¡@

Home 

python Programming Glossary: colorval

Using Colormaps to set color of line in matplotlib

http://stackoverflow.com/questions/8931268/using-colormaps-to-set-color-of-line-in-matplotlib

cmap jet lines for idx in range len curves line curves idx colorVal scalarMap.to_rgba values idx retLine ax.plot line color colorVal.. scalarMap.to_rgba values idx retLine ax.plot line color colorVal #retLine.set_color lines.append retLine ax.legend lines labels.. lines for idx in range len curves line curves idx colorVal scalarMap.to_rgba values idx colorText 'color 4.2f 4.2f 4.2f..