Skip to content

Commit 8f39bc7

Browse files
Add testInvisibleEmptyAxesSkipped (prevent plotmatrix outer axes from occluding the plot area)
1 parent e607cd1 commit 8f39bc7

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

plotly/Test_plotlyfig.m

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3327,5 +3327,20 @@ function testQuiverHovertextData(tc)
33273327
tc.verifyEqual(p.data{2}.hovertext, expectedHovertext);
33283328
try close(); catch; end
33293329
end
3330+
3331+
function testInvisibleEmptyAxesSkipped(tc)
3332+
% invisible axes that carry no plots (e.g. plotmatrix's
3333+
% full-page outer axes) must not produce data traces.
3334+
fig = figure("Visible","off");
3335+
axes("Visible","off");
3336+
axes();
3337+
plot(1:5, 1:5);
3338+
3339+
p = plotlyfig(fig,"visible","off");
3340+
3341+
tc.verifyNumElements(p.data, 1);
3342+
tc.verifyEqual(p.data{1}.x, 1:5);
3343+
try close(); catch; end
3344+
end
33303345
end
33313346
end

0 commit comments

Comments
 (0)