Vary color along line plot according to some intensity array?

Hello -

I searched the mailing list, but couldn’t find an answer.

I want to vary the color (or width for that matter) of a line according
to an additional array of values. Very much like the ‘s’ array in
scatter plot.
In this fashion every (x0,y0), (x1,y1) segment has either a different color or width.

Can this be done easily, or should I just loop through my x,y array and call plot every time with a different color/width?

Thanks,

Mark

I always thought it would be really slick to present error bars with this kind
of effect, so I would also like to know if it is possible.

···

On Thursday 18 August 2005 7:49 pm, Mark Bakker wrote:

Hello -

I searched the mailing list, but couldn't find an answer.

I want to vary the color (or width for that matter) of a line according to
an additional array of values. Very much like the 's' array in scatter
plot. In this fashion every (x0,y0), (x1,y1) segment has either a different
color or width.

Can this be done easily, or should I just loop through my x,y array and
call plot every time with a different color/width?