# HG changeset patch # User John W. Eaton # Date 1345341791 14400 # Node ID efac5593b1de83a3339824f1881eccafdc87d9f4 # Parent fa0cf7d870d759e0aa98e8d2c43791866a497d4a * __pie__.m: Avoid syntax errors in matrix lists. diff --git a/scripts/plot/private/__pie__.m b/scripts/plot/private/__pie__.m --- a/scripts/plot/private/__pie__.m +++ b/scripts/plot/private/__pie__.m @@ -117,16 +117,16 @@ if (strncmp (caller, "pie3", 4)) ln = length (xn); zlvl = 0.35; - sx = repmat (xoff + [0, - sind(xn), 0], [2 1]); - sy = repmat (yoff + [0, cosd(xn), 0], [2 1]); + sx = repmat (xoff + [0, -sind(xn), 0], [2, 1]); + sy = repmat (yoff + [0, cosd(xn), 0], [2, 1]); sz = [zeros(1, ln + 2); zlvl * ones(1, ln + 2)]; sc = i * ones (size (sz)); hlist = [hlist; - patch (xoff + [0, - sind(xn)], yoff + [0, cosd(xn)], zeros (1, ln + 1), i); - surface (sx, sy, sz, sc); - patch (xoff + [0, - sind(xn)], yoff + [0, cosd(xn)], zlvl * ones (1, ln + 1), i); - text (xt, yt, zlvl, labels{i})]; + patch(xoff + [0, -sind(xn)], yoff + [0, cosd(xn)], zeros (1, ln + 1), i); + surface(sx, sy, sz, sc); + patch(xoff + [0, -sind(xn)], yoff + [0, cosd(xn)], zlvl * ones (1, ln + 1), i); + text(xt, yt, zlvl, labels{i})]; elseif (strncmp (caller, "pie", 3)) if (xt > 0) @@ -135,8 +135,8 @@ align = "right"; endif - hlist = [hlist; patch(xoff + [0, - sind(xn)], yoff + [0, cosd(xn)], i); - text (xt, yt, labels{i}, "horizontalalignment", align)]; + hlist = [hlist; patch(xoff + [0, -sind(xn)], yoff + [0, cosd(xn)], i); + text(xt, yt, labels{i}, "horizontalalignment", align)]; else error ("__pie__: unknown caller `%s'", caller);