Skip to content

Commit 734776b

Browse files
committed
add possibility to add description to roi plotting
1 parent f1d29f5 commit 734776b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/roi/plotDataInRoi.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,11 @@ function labelAxis(roiAs, rows, cols, subplotList, roiImages, dataLabel)
222222
subplot(rows, cols, subplotList(1, i));
223223

224224
bf = bids.File(roiImages{i});
225-
title(sprintf('roi: %s', bf.entities.label));
225+
desc = '';
226+
if isfield(bf.entities, 'desc')
227+
desc = sprintf('- desc: %s', bf.entities.desc);
228+
end
229+
title(sprintf('roi: %s%s', bf.entities.label, desc));
226230

227231
subplot(rows, cols, subplotList(end, i));
228232

0 commit comments

Comments
 (0)