|
From: John H. <jdh...@ac...> - 2006-06-13 14:29:16
|
>>>>> "Ga=EBl" =3D=3D Ga=EBl Varoquaux <gae...@no...> wr=
ites:
Ga=EBl> Hi, It would be a nice feature for the plot command to
Ga=EBl> accept a list of rgb colors of the same length than the data
Ga=EBl> vectors to be plotted, in order to generate plots alike the
Ga=EBl> one on the wiki
Ga=EBl> "http://scipy.org/Cookbook/Matplotlib/MulticoloredLine".
Eric recently updated LineCollection to inherit from ScalarMappable
(in mpl 0.87.3) which means you can pass it a colormap instance.
Perhaps we should update the wiki example to reflect this. I'm not at
all opposed to making a helper function like scatter to plot
parametric lines with colormaps, but I don't think "plot" is the right
vehicle, since it returns a Line2d, not a LineCollection, and since it
is already heavily overloaded. parplot? =20
JDH
|