Mercurial > hg > octave-lyh
comparison scripts/plot/print.m @ 14356:c097c22e9294
print.m: Restore figure properties in reverse of the order of modification.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 10 Feb 2012 18:57:55 -0500 |
parents | a6a5c5008e39 |
children | b76f0740940e |
comparison
equal
deleted
inserted
replaced
14355:a6a5c5008e39 | 14356:c097c22e9294 |
---|---|
395 endswitch | 395 endswitch |
396 | 396 |
397 unwind_protect_cleanup | 397 unwind_protect_cleanup |
398 ## restore modified properties | 398 ## restore modified properties |
399 if (isstruct (props)) | 399 if (isstruct (props)) |
400 for n = 1:numel(props) | 400 for n = numel(props):-1:1 |
401 if (ishandle (props(n).h)) | 401 if (ishandle (props(n).h)) |
402 set (props(n).h, props(n).name, props(n).value{1}); | 402 set (props(n).h, props(n).name, props(n).value{1}); |
403 endif | 403 endif |
404 endfor | 404 endfor |
405 endif | 405 endif |