Mercurial > octave
changeset 31315:5af91eaa0034
maint: Merge away extra head
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Mon, 17 Oct 2022 06:24:34 -0400 |
parents | 23744576f53f (current diff) 909770674508 (diff) |
children | 24e45a79bf3c |
files | |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/__clabel__.m Mon Oct 17 09:28:16 2022 +0200 +++ b/scripts/plot/appearance/__clabel__.m Mon Oct 17 06:24:34 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