[Scilab-users] vatying color along a curve
grivet
grivet at cnrs-orleans.fr
Fri Mar 1 16:25:38 CET 2013
Le 01/03/2013 16:00, Serge Steer a écrit :
>
> Le 01/03/2013 14:47, grivet a écrit :
>> Hello,
>> I am trying to plot a curve using varying colors (or saturations)
>> along the way. The curve is computed as a series of segments.
>> To plot a segment beginning at (xd,yd) and ending at (xf,yf), I have
>> tried the following
>>
>> plot([xd,xf],[yd,yf],"foreground",3);
>>
> It is better to use the xsegs function to do that. This function
> allows to draw a set of colored segments using a single command
Thank you serge; a further question: how can I define my own color map ?
More information about the users
mailing list