[Scilab-users] interp_color_vector
Adelson Oliveira
adelson.oliveira at gmail.com
Mon Jun 8 18:56:32 CEST 2015
Thanks for the answer,
I intend to plot a curve that changes its color. Following your code I've
tried,
clfdrawlaterf = gcf();Nc = 100; // Number of colors usedf.color_map =
jetcolormap(Nc);
x=[0:0.1:4*%pi];
y=sin(x);
plot2d(x,y,axesflag=0)
e = gce();e.fill_mode = "on"; // the background must be
fillede.interp_color_vector = [Nc Nc 1 1]; // defines distibution of
graded colorse.interp_color_mode = "on"; // actives graded
colorsdrawnow
And got errors like,
"... the property 'fill_mode' or 'data' does not exist for this
handler ..." (a tranlation from portuguese)
Is it possible to have a curve changing color as it proceeds?
Thanks again
2015-06-07 23:43 GMT-03:00 Samuel Gougeon <sgougeon at free.fr>:
> 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:
>
> clfdrawlaterf = gcf();Nc = 100; // Number of colors usedf.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 fillede.interp_color_vector = [Nc Nc 1 1]; // defines distibution of graded colorse.interp_color_mode = "on"; // actives graded colorsdrawnow
>
>
> The result of a more elaborated example (could be added as a demo) :
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150608/46532fe7/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/46532fe7/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/46532fe7/attachment-0001.png>
More information about the users
mailing list