# HG changeset patch # User Tommi Höynälänmaa # Date 1666001894 14400 # Node ID 909770674508735b3aeb040674b8b1397795f860 # Parent 6408e371355b56e6a514447e065bd4d5e6525c22 __clabel__.m: Do not print erroneous labels (bug #63213) diff -r 6408e371355b -r 909770674508 scripts/plot/appearance/__clabel__.m --- a/scripts/plot/appearance/__clabel__.m Sat Oct 15 18:46:55 2022 +0200 +++ b/scripts/plot/appearance/__clabel__.m Mon Oct 17 06:18:14 2022 -0400 @@ -103,12 +103,12 @@ if (isempty (j)) j = clen; endif - tpos = sum (c(:,i+j-1:i+j), 2) / 2; + tpos = sum (c(:,i+j:i+j+1), 2) / 2; if ( tpos(1) != xmin && tpos(1) != xmax && tpos(2) != ymin && tpos(2) != ymax) - trot = 180 / pi * atan2 (diff (c(2,i+j-1:i+j)) * yspacing, - diff (c(1,i+j-1:i+j)) * xspacing); + trot = 180 / pi * atan2 (diff (c(2,i+j:i+j+1)) * yspacing, + diff (c(1,i+j:i+j+1)) * xspacing); if (abs (trot) > 90) trot += 180; endif