Mercurial > hg > octave-lyh
comparison scripts/plot/plot3.m @ 8257:79c874fe5100
More plot object updates
author | David Bateman <dbateman@free.fr> |
---|---|
date | Wed, 22 Oct 2008 04:30:17 +0100 |
parents | 4665276ff7f6 |
children | 6f2d95255911 |
comparison
equal
deleted
inserted
replaced
8256:dba0037e6602 | 8257:79c874fe5100 |
---|---|
180 color = options.color; | 180 color = options.color; |
181 if (isempty (options.color)) | 181 if (isempty (options.color)) |
182 color = __next_line_color__ (); | 182 color = __next_line_color__ (); |
183 endif | 183 endif |
184 | 184 |
185 hg = hggroup (); | 185 tmp(++idx) = line (x(:, i), y(:, i), z(:, i), "keylabel", key, |
186 tmp(++idx) = hg; | 186 "color", color, |
187 properties = __add_datasource__ ("plot3", hg, {"x", "y", "z"}, properties{:}); | 187 "linestyle", options.linestyle, |
188 | 188 "marker", options.marker, properties{:}); |
189 hline = line (x(:, i), y(:, i), z(:, i), "keylabel", key, | |
190 "color", color, | |
191 "linestyle", options.linestyle, | |
192 "marker", options.marker, "parent", hg); | |
193 | |
194 __add_line_series__ (hline, hg); | |
195 | |
196 if (! isempty (properties)) | |
197 set (hg, properties{:}); | |
198 endif | |
199 endfor | 189 endfor |
200 | 190 |
201 x_set = 0; | 191 x_set = 0; |
202 y_set = 0; | 192 y_set = 0; |
203 z_set = 0; | 193 z_set = 0; |
239 color = options.color; | 229 color = options.color; |
240 if (isempty (color)) | 230 if (isempty (color)) |
241 color = __next_line_color__ (); | 231 color = __next_line_color__ (); |
242 endif | 232 endif |
243 | 233 |
244 hg = hggroup (); | 234 tmp(++idx) = line (x(:, i), y(:, i), z(:, i), "keylabel", key, |
245 tmp(++idx) = hg; | 235 "color", color, |
246 properties = __add_datasource__ ("plot3", hg, {"x", "y", "z"}, properties{:}); | 236 "linestyle", options.linestyle, |
247 | 237 "marker", options.marker, properties{:}); |
248 hline = line (x(:, i), y(:, i), z(:, i), "keylabel", key, | |
249 "color", color, | |
250 "linestyle", options.linestyle, | |
251 "marker", options.marker, "parent", hg); | |
252 | |
253 __add_line_series__ (hline, hg); | |
254 | |
255 if (! isempty (properties)) | |
256 set (hg, properties{:}); | |
257 endif | |
258 endfor | 238 endfor |
259 | 239 |
260 x = new; | 240 x = new; |
261 y_set = 0; | 241 y_set = 0; |
262 z_set = 0; | 242 z_set = 0; |
317 color = options.color; | 297 color = options.color; |
318 if (isempty (color)) | 298 if (isempty (color)) |
319 color = __next_line_color__ (); | 299 color = __next_line_color__ (); |
320 endif | 300 endif |
321 | 301 |
322 hg = hggroup (); | 302 tmp(++idx) = line (x(:, i), y(:, i), z(:, i), "keylabel", key, |
323 tmp(++idx) = hg; | 303 "color", color, |
324 properties = __add_datasource__ ("plot3", hg, {"x", "y", "z"}, properties{:}); | 304 "linestyle", options.linestyle, |
325 | 305 "marker", options.marker, properties{:}); |
326 hline = line (x(:, i), y(:, i), z(:, i), "keylabel", key, | |
327 "color", color, | |
328 "linestyle", options.linestyle, | |
329 "marker", options.marker, "parent", hg); | |
330 | |
331 __add_line_series__ (hline, hg); | |
332 | |
333 if (! isempty (properties)) | |
334 set (hg, properties{:}); | |
335 endif | |
336 endfor | 306 endfor |
337 endif | 307 endif |
338 | 308 |
339 set (gca (), "view", [-37.5, 30]); | 309 set (gca (), "view", [-37.5, 30]); |
340 | 310 |