[Scilab-users] Lengend for 3d-plot and an horizontal plane at z=0

Rafael Guerra jrafaelbguerra at hotmail.com
Sat Mar 25 21:09:00 CET 2017


For 2. <http://mailinglists.scilab.org/file/n4036008/surface_transparent.png>
, see picture attached and code below with tight limits 'on' and face color
= 'none':

//START OF CODE
x0 = linspace(25,120,100);
y0 = linspace(0.5,2.5,100);
[x y] = meshgrid(x0,y0);
z1 = 3e7*(y-mean(y))+0.1*x;

clf
f=gcf()
f.color_map = jetcolormap(64);
surf(x, y, z1,'facecol','interp')
h=get("hdl");
h.color_mode=-2; 
a = gca()
B = a.data_bounds;
a.tight_limits = 'on';
dx = 10; // x-decimation factor
dy = 15; // y-decimation factor
x0 = [x0(1:dx:$) B(2,1)] ;
y0 = [y0(1:dy:$) B(2,2)];
[xx yy] = meshgrid(x0,y0);
surf(xx,yy,0*xx,'facecol','none')
a=gca()
//END OF CODE

Regards,
Rafael



--
View this message in context: http://mailinglists.scilab.org/Lengend-for-3d-plot-and-an-horizontal-plane-at-z-0-tp4035999p4036008.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list