[scilab-Users] xset("use color",0) gives !--error 999 xset: Unrecognized input argument: 'use color'.

Samuel Gougeon sgougeon at free.fr
Wed Sep 21 23:13:32 CEST 2011


Le 21/09/2011 11:54, Ginters Bus(s a écrit :
> Dear all,
>
> I wish to use monochrome plots that automatically sets different line 
> styles and/or markers if plot contains more than one line.
>
> As a first step, I tried xset("use color",0) but it (scilab 5.3.0 and 
> 5.3.3) gives:
>
> !--error 999  xset: Unrecognized input argument: 'use color'.
>
> although the argument appears in Help.
>
> What's wrong?
>
> gin
Here is a short example illustrating the hint from Mathieu:
========
x = linspace(0,20,200);
clf
plot2d(x,cos(x))
a = gca();
a.children.children.line_style=1; // =0 (default) = solid line
for i=1:5
     plot2d(x,cos(x+i)/(i+1))
     a.children(1).children.line_style=a.children(2).children.line_style+1;
end
============

AFAIK, there is no other automatic way for doing this.

HTH
Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110921/89b6aa5e/attachment.htm>


More information about the users mailing list