Mercurial > hg > octave-lyh
comparison scripts/plot/struct2hdl.m @ 15941:8135bce0812a
struct2hdl.m: send error when the requested object type is not implemented.
* scripts/plot/struct2hdl.m: send error when the requested object type is not
implemented.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sun, 13 Jan 2013 21:57:02 +0100 |
parents | d0579fed7e22 |
children | e39f00a32dc7 |
comparison
equal
deleted
inserted
replaced
15940:f37c909f80a0 | 15941:8135bce0812a |
---|---|
146 h = createimage (s, par); | 146 h = createimage (s, par); |
147 elseif (strcmp (s.type, "surface")) | 147 elseif (strcmp (s.type, "surface")) |
148 h = createsurface (s, par); | 148 h = createsurface (s, par); |
149 elseif (strcmp (s.type, "hggroup")) | 149 elseif (strcmp (s.type, "hggroup")) |
150 [h, s, p] = createhg (s, p, par, hilev); | 150 [h, s, p] = createhg (s, p, par, hilev); |
151 else | |
152 error ("struct2hdl: %s objects are not implemented yet", s.type) | |
151 endif | 153 endif |
152 | 154 |
153 ## children | 155 ## children |
154 p = [p [s.handle; h]]; # [original; new] | 156 p = [p [s.handle; h]]; # [original; new] |
155 kids = s.children; | 157 kids = s.children; |