I would like to label a plot with a multiline formatted string which includes some tabs, but the tabs disappear on the plot. How to fix this? (I don't want to substitute spaces for the tabs since I am lining up colums in my real plot label).
Here's an example,
% Make example plot
f1 = figure;peaks; view(2);shading flat;hold on;% Create the string to label it with
str = sprintf('%6.4f\t\t%6.4f\nbbbbbbbbbbbbbb\nccccccccccc', rand(2,1));disp(str) % Tabs are present
% Label the plot with string
t = text(-3, 0.4, str); % The text is labeled but the tabs have disappeared
Best Answer