Hat on letter on x/ylabel WITHOUT using LaTeX?
28 views (last 30 days)
dpb on 23 Apr 2020
figure, plot(sort(rand(10,4))) % preliminaries...
hTxt=text(4,0.6,'x'); % location arbitrary for given data set
Not perfect bit fiddling w/ positioning, font size, etc., etc., may improve things a little. It looked less obtrusive and more aligned over the character on the figure itself than the saved one here for some reason.
More Answers (1)
Robert U on 23 Apr 2020
Hi Minas Emiris,
convert the circumflex from unicode to string via sprintf (see here, unicode table for combining characters found here) and use append to create the string for the labels (as shown here):
circumFlex = sprintf('\x0302')
fh = figure;
ah = axes(fh);
ah.XLabel.String = append('T',circumFlex);