|
From: V. A. S. <so...@es...> - 2014-11-13 14:00:45
|
Hello, I am trying to plot a line assigning a user specified color to each marker. The idea is that if I have n points x, n ppoints y, I was expecting to be able to provide n markeredgecolors or n markerfacecolors as a (npoints, 4) array of RGBA values. However that does not seem to be possible (or I have failed to find it). The closest thing to that functionality I have found is based on creating a colormap with as many entries as points to be plotted: http://stackoverflow.com/questions/16834861/create-own-colormap-using-matplotlib-and-plot-color-scale and that only seems to work with scatter plots. Any hint about how to generate a Line2D object with a user specified set of colors (therefore not needing to create and use a colormap)? Thanks for your time, Armando |