Apply the interpreter latex just to a part of the legend title
25 views (last 30 days)
Show older comments
Hi, I would like to apply the interpreter Latex just to a part of the legend title.
In the following attempt all the legend title is completely interpreted as Latex, but I would like that only the $\\alpha_b$ part is interpreted as Latex
lgd = legend(myplot,'interpreter','latex');
A = sprintf('My quantity $\\alpha_b$ is > %d', mynumber);
lgd.Title.String = A;
Any suggestion? (maybe still keeping both sprintf and 'interpreter','latex') ?
Thanks!
0 Comments
Answers (1)
See Also
Categories
Find more on Labels and Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!