Le 07/06/2015 16:26, Adelson a écrit :
Could someone please post here a simple and clear example of plotting a curve
using a specific interp_color_vector?
Here it is:

clf
drawlater
f  =  gcf();
Nc  =  100;   // Number of colors used
f.color_map  =  jetcolormap(Nc);
x  =  [0  0.6   1  0.2];
y  =  [0  0.4   1  0.7];
xpoly(x,y,  "lines",1)
e  =  gce();
e.fill_mode  =  "on";      // the background must be filled
e.interp_color_vector  =  [Nc  Nc  1  1];  // defines distibution of graded 
colors
e.interp_color_mode  =  "on";           // actives graded colors
drawnow




The result of a more elaborated example (could be added as a demo) :



_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to