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 Center および File ExchangeGraphics Object Programming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by