Skip to content

Commit 906076a

Browse files
singalsulgirdwood
authored andcommitted
Tools: Test: Audio: process_test: Fix plot title texts with "_"
The interpreter for LaTeX style formatting messes up text strings with underscores (to use subscript font). With disable of formatting interpreter the plot title texts from e.g. process_test.m look sane since we don't use formatted text. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 0744e2a commit 906076a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/test/audio/process_test.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ function test_result_print(t, testverbose, testacronym, test)
442442
%% FIXME: get unique string to keep all the incremental logs
443443

444444
for i = 1:length(test.ph)
445-
title(test.ph(i), tstr);
445+
title(test.ph(i), tstr, 'Interpreter', 'none');
446446
end
447447

448448
for i = 1:length(test.fh)

tools/test/audio/src_test.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,9 @@
486486
function src_test_result_print(t, testverbose, testacronym, ph)
487487
tstr = sprintf('%s SRC %d, %d', testverbose, t.fs1, t.fs2);
488488
if nargin > 3 && ~isempty(ph)
489-
title(ph, tstr);
489+
title(ph, tstr, 'Interpreter', 'none');
490490
else
491-
title(tstr);
491+
title(tstr, 'Interpreter', 'none');
492492
end
493493
pfn = sprintf('plots/%s_src_%d_%d.png', testacronym, t.fs1, t.fs2);
494494
print(pfn, '-dpng');

tools/test/audio/tdfb_test.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function tdfb_test(xtrun)
208208
hold off
209209
grid on;
210210
legend('ch1 in','ch1 out');
211-
title(tstr);
211+
title(tstr, 'Interpreter', 'none');
212212
end
213213

214214
end

0 commit comments

Comments
 (0)