Mercurial > octave-nkf
comparison NEWS @ 18757:e68788478aa1
linkprop.m: Overhaul function for performance and Matlab compatibility.
* NEWS: Announce changes in linkprop behavior.
* linkprop.m: Redo docstring. Add more input validation. When linking, set
property values to be that of the first object in the list (missing Matlab
compatibility). Use onCleanup instead of an hggroup in order for 'clear hlink'
command to correctly unlink properties. For performance, avoid for loops in
update_prop and use set() with multiple handles. Add %!demo, %!test, and
%!error code to verify function.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 03 May 2014 16:51:00 -0700 |
parents | 700714c099a2 |
children | d1750be79dee |
comparison
equal
deleted
inserted
replaced
18756:f8203daed9d4 | 18757:e68788478aa1 |
---|---|
21 * round(x) != x or the value is outside the range allowed by the | 21 * round(x) != x or the value is outside the range allowed by the |
22 integer format specifier. | 22 integer format specifier. |
23 | 23 |
24 There is still one difference: Matlab switches to '%e' and Octave | 24 There is still one difference: Matlab switches to '%e' and Octave |
25 is currently switching to '%g'. | 25 is currently switching to '%g'. |
26 | |
27 ** linkprop has been completely re-coded for performance and Matlab | |
28 compatibility. It now returns a linkprop object which must be stored | |
29 in a variable for as long as the graphic objects should remain linked. | |
30 To unlink properties use 'clear hlink' where hlink is the variable | |
31 containing the linkprop object. | |
26 | 32 |
27 ** Other new functions added in 4.2: | 33 ** Other new functions added in 4.2: |
28 | 34 |
29 dir_in_loadpath | 35 dir_in_loadpath |
30 hgload | 36 hgload |