[scilab-Users] contours: color and type of line

Yann Collette yann.collette at scilab.org
Thu Sep 3 13:46:29 CEST 2009


james.smith1 at freenet.de a écrit :
>
> hi,
>
>  
>
> is it possible to change the color of the contour lines on a 3D plot 
> (setting all them to red for instance);
>
> moreover, those iso-lines are dashed; is it possible to get contours 
> represented as solid lines instead of dashed lines ?
>
> and even to change the thickness of the contour lines ?
>
>  
>
> thanks for the help,
>
>  
>
> regards,
>
> Laurent
>
>
> --
> <http://adserver.freenet.de/click.ng/site=fn&affiliate=fn_mail&prod=fn_mail&tbl=webmail&ppos=14&rgtg=256&TransactionID=1251961373887754>

I wrote a small findallobj function
First, plot a contour:
contour();
h = gcf();
res = findallobj(res,'type','Polyline');
for i=1:length(res)
  res(i).thickness = 2; // To change the thickness of the contour lines
  res(i).line_style = 2; // To change the shape of the line
end

YC

-- 
-----------------------------
Yann COLLETTE
Software Development Engineer
-----------------------------
The Scilab Consortium
Digiteo Foundation
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay France
Phone: +33.1.39.63.57.82

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: findallobj.sci
URL: <https://lists.scilab.org/pipermail/users/attachments/20090903/d9a61778/attachment.ksh>


More information about the users mailing list