[Matplotlib-users] Setting a user defined color for each marker of a Line2D

2014-11-13 Thread V. Armando Solé
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

Re: [Matplotlib-users] Setting a user defined color for each marker of a Line2D

2014-11-13 Thread Thomas Caswell
If you want each marker to be a different color you have to use scatter. You can pass scatter a sequence of colors (see http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.scatter) so you don't have to go through making a custom colormap. Tom On Thu Nov 13 2014 at 9:01:42 AM V. Armando