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 <[email protected]>: > 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 > [email protected] > http://lists.scilab.org/mailman/listinfo/users > >
_______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
