Incosistent behaviour of figures titles in Cody coursework

조회 수: 1 (최근 30일)
Dmytro Bobkov
Dmytro Bobkov 2015년 9월 14일
답변: Santosh Kasula 2015년 10월 16일
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