comparison scripts/plot/appearance/annotation.m @ 19885:059a05bc398c

Replace 'Octave:broadcast' warning with 'Octave:matlab-incompatible'. * liboctave/numeric/bsxfun.h: replace the 'Octave:broadcasting' with the more common 'Octave:matlab-compatible' warning which is off by default. * plot/appearance/annotation.m, image/cubehelix.m: remove turning off the warning since now it is done by default. * miscellaneous/warning_ids.m: remove entry about Octave:broadcast * NEWS: make note of this change.
author Carnë Draug <carandraug@octave.org>
date Sat, 21 Feb 2015 16:38:53 +0000
parents 9fc020886ae9
children e9f89866074c
comparison
equal deleted inserted replaced
19884:f81a1da191e4 19885:059a05bc398c
667 endswitch 667 endswitch
668 endif 668 endif
669 endfunction 669 endfunction
670 670
671 function [x, y] = arrowcoordinates (h, nar = []) 671 function [x, y] = arrowcoordinates (h, nar = [])
672 warning ("off", "Octave:broadcast", "local")
673 pos = getnormpos (h); 672 pos = getnormpos (h);
674 ppos = norm2pts (h, pos(3:4).'); 673 ppos = norm2pts (h, pos(3:4).');
675 ang = angle (complex (ppos(1), ppos(2))); 674 ang = angle (complex (ppos(1), ppos(2)));
676 675
677 if (isempty (nar)) 676 if (isempty (nar))
828 endif 827 endif
829 828
830 endfunction 829 endfunction
831 830
832 function XY = textcoordinates (hte, pos) 831 function XY = textcoordinates (hte, pos)
833 warning ("off", "Octave:broadcast", "local")
834
835 ## Get the "tight" extent of the text object in points units 832 ## Get the "tight" extent of the text object in points units
836 textpos = get(hte, "position"); 833 textpos = get(hte, "position");
837 rot = get (hte, "rotation"); 834 rot = get (hte, "rotation");
838 units = get (hte, "units"); 835 units = get (hte, "units");
839 836