From 3fc23f16cd92c315bc24f0d8070e8f96945386f3 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Fri, 12 Dec 2025 11:33:48 +0200 Subject: [PATCH] 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 --- tools/test/audio/process_test.m | 2 +- tools/test/audio/src_test.m | 4 ++-- tools/test/audio/tdfb_test.m | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/test/audio/process_test.m b/tools/test/audio/process_test.m index 70df2978a439..1af293b1967a 100644 --- a/tools/test/audio/process_test.m +++ b/tools/test/audio/process_test.m @@ -442,7 +442,7 @@ function test_result_print(t, testverbose, testacronym, test) %% FIXME: get unique string to keep all the incremental logs for i = 1:length(test.ph) - title(test.ph(i), tstr); + title(test.ph(i), tstr, 'Interpreter', 'none'); end for i = 1:length(test.fh) diff --git a/tools/test/audio/src_test.m b/tools/test/audio/src_test.m index 2c99bc1bded5..6b28b62693d9 100644 --- a/tools/test/audio/src_test.m +++ b/tools/test/audio/src_test.m @@ -486,9 +486,9 @@ function src_test_result_print(t, testverbose, testacronym, ph) tstr = sprintf('%s SRC %d, %d', testverbose, t.fs1, t.fs2); if nargin > 3 && ~isempty(ph) - title(ph, tstr); + title(ph, tstr, 'Interpreter', 'none'); else - title(tstr); + title(tstr, 'Interpreter', 'none'); end pfn = sprintf('plots/%s_src_%d_%d.png', testacronym, t.fs1, t.fs2); print(pfn, '-dpng'); diff --git a/tools/test/audio/tdfb_test.m b/tools/test/audio/tdfb_test.m index 3dcf1fecf535..0c75c3cf1053 100644 --- a/tools/test/audio/tdfb_test.m +++ b/tools/test/audio/tdfb_test.m @@ -208,7 +208,7 @@ function tdfb_test(xtrun) hold off grid on; legend('ch1 in','ch1 out'); - title(tstr); + title(tstr, 'Interpreter', 'none'); end end