[Scilab-users] interp_color_vector
Samuel Gougeon
sgougeon at free.fr
Mon Jun 8 04:43:31 CEST 2015
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) :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150608/8112028b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dcehgfcj.png
Type: image/png
Size: 50501 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20150608/8112028b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dajfgici.png
Type: image/png
Size: 9512 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20150608/8112028b/attachment-0001.png>
More information about the users
mailing list