Incosistent behaviour of figures titles in Cody coursework

1 次查看(过去 30 天)
I have observed an inconsistent behaviour of figure titles in Cody Coursework in visible tests: one time they are shown, another time they are not completely shown (see attached screenshot, top correct, bottom incorrect).
In particular, I call the following code three times for different data structures (i.e. NA, NB, NC) in visible tests
% some other code here for loading images etc., no graphics
figure; imshow((abs(im_ref_ch_A-periodic_A)).*10); title('Difference image for NA');
figure; imshow((abs(im_ref_ch_B-periodic_B)).*10); title('Difference image for NB');
figure; imshow((abs(im_ref_ch_C-periodic_C)).*10); title('Difference image for NC');
assert(size(im_ref_ch_A,1)==sz(1) && size(im_ref_ch_A, 2)==sz(2), 'Size is incorrect');
However, when I put double comment before each line of graphics, then their titles are shown correctly, as in here
figure; imshow((abs(im_ref_ch_A-periodic_A)).*10); title('Difference image for NA');
figure; imshow((abs(im_ref_ch_B-periodic_B)).*10); title('Difference image for NB');
figure; imshow((abs(im_ref_ch_C-periodic_C)).*10); title('Difference image for NC');
assert(size(im_ref_ch_A,1)==sz(1) && size(im_ref_ch_A, 2)==sz(2), 'Size is incorrect');
Why is it like this and why is there nothing in documentation regarding this behaviour?
Best regards,
D. Bobkov

采纳的回答

Santosh Kasula
Santosh Kasula 2015-10-16
This looks like a bug. We are looking into this.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by