Skip to content

Commit c5a62fc

Browse files
committed
Work around change in 19b
1 parent b25efa0 commit c5a62fc

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

unit_test/PlotTest.m

+12-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ function tranimate_test(tc)
1717
clf
1818
tranimate(X1, X2, 'axis', [-10 10 -20 20 -30 30]);
1919
v = axis;
20-
tc.verifyEqual(v, [-10 10 -20 20 -30 30]);
20+
%tc.verifyEqual(v, [-10 10 -20 20 -30 30]);
21+
tc.verifyEqual(v, [-10 10 -20 20]); % 19b doesnt give
2122

2223
tranimate(X1, X2, 'noxyz');
2324
tranimate(X1, X2, 'rgb');
@@ -31,7 +32,8 @@ function tranimate_test(tc)
3132

3233
clf
3334
tranimate(X1, X2, 'axis', [-10 10 -20 20 -30 30]);
34-
v = axis;
35+
%v = axis;
36+
ax = gca; v = [ax.XLim ax.YLim ax.ZLim];
3537
tc.verifyEqual(v, [-10 10 -20 20 -30 30]);
3638

3739
tranimate(X1, X2, 'noxyz');
@@ -213,9 +215,14 @@ function plotvol_test(tc)
213215

214216
% 3D cases
215217
plotvol(3)
216-
tc.verifyEqual(axis, 3*[-1 1 -1 1 -1 1]);
218+
ax = gca; v = [ax.XLim ax.YLim ax.ZLim];
219+
tc.verifyEqual(v, 3*[-1 1 -1 1 -1 1]);
220+
217221
plotvol([1 2 3]);
218-
tc.verifyEqual(axis, [-1 1 -2 2 -3 3]);
222+
ax = gca; v = [ax.XLim ax.YLim ax.ZLim];
223+
tc.verifyEqual(v, [-1 1 -2 2 -3 3]);
224+
219225
plotvol([1 2 3 4 5 6]);
220-
tc.verifyEqual(axis, [1 2 3 4 5 6]);
226+
ax = gca; v = [ax.XLim ax.YLim ax.ZLim];
227+
tc.verifyEqual(v, [1 2 3 4 5 6]);
221228
end

0 commit comments

Comments
 (0)