comparison scripts/plot/draw/stemleaf.m @ 19930:5f2c0ca0ef51

Ensure that numbers passed to integer *printf format codes are integers (bug #44245). * num2str.m, validateattributes.m, inputname.m, stemleaf.m, print.m, __ghostscript__.m, __gnuplot_print__.m, __go_draw_axes__.m, __go_draw_figure__.m, bicg.m, qmr.m, mat2str.m, validatestring.m, assert.m: Ensure that numbers passed to integer *printf format codes are integers.
author Rik <rik@octave.org>
date Mon, 16 Feb 2015 16:51:45 -0800
parents 4197fc428c7d
children
comparison
equal deleted inserted replaced
19929:abc158e7122e 19930:5f2c0ca0ef51
183 huidx = fix (nx + 1 - hlidx); # upper hinge index 183 huidx = fix (nx + 1 - hlidx); # upper hinge index
184 md = xs(mdidx); # median 184 md = xs(mdidx); # median
185 hl = xs(hlidx); # lower hinge 185 hl = xs(hlidx); # lower hinge
186 hu = xs(huidx); # upper hinge 186 hu = xs(huidx); # upper hinge
187 h_spread = hu - hl; # h_spread: difference between hinges 187 h_spread = hu - hl; # h_spread: difference between hinges
188 step = fix(1.5*h_spread); # step: 1.5 * h_spread 188 step = fix (1.5*h_spread); # step: 1.5 * h_spread
189 i_fence_l = hl - step; # inner fences: outside hinges + step 189 i_fence_l = hl - step; # inner fences: outside hinges + step
190 o_fence_l = hl - 2*step; # outer fences: outside hinges + 2*step 190 o_fence_l = hl - 2*step; # outer fences: outside hinges + 2*step
191 i_fence_h = hu + step; 191 i_fence_h = hu + step;
192 o_fence_h = hu + 2*step; 192 o_fence_h = hu + 2*step;
193 n_out_l = sum (x<i_fence_l) - sum (x<o_fence_l); 193 n_out_l = sum (x<i_fence_l) - sum (x<o_fence_l);