comparison scripts/plot/mesh.m @ 6405:b298a4c12fc3

[project @ 2007-03-14 16:51:28 by jwe]
author jwe
date Wed, 14 Mar 2007 16:51:30 +0000
parents 334499d75c5c
children 93c65f2a5668
comparison
equal deleted inserted replaced
6404:2005c0169e36 6405:b298a4c12fc3
66 66
67 ## make a default line object, and make it the current axes for the 67 ## make a default line object, and make it the current axes for the
68 ## current figure. 68 ## current figure.
69 ca = gca (); 69 ca = gca ();
70 70
71 s = __uiobject_surface_ctor__ (ca); 71 tmp = __go_surface__ (ca, "xdata", x, "ydata", y, "zdata", z);
72
73 s.xdata = x;
74 s.ydata = y;
75 s.zdata = z;
76 72
77 set (ca, "view", [-37.5, 30]); 73 set (ca, "view", [-37.5, 30]);
78
79 tmp = __uiobject_make_handle__ (s);
80
81 __uiobject_adopt__ (ca, tmp);
82 74
83 if (nargout > 0) 75 if (nargout > 0)
84 h = tmp; 76 h = tmp;
85 endif 77 endif
86 78