How can I use different fonts within one axis label in MATLAB 7.13 (R2011b)?

16 vues (au cours des 30 derniers jours)
I would like to use different Fonts (like Arial and Times) in one YLabel. How can I achieve this? How can I furthermore set different font angles within one label?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 5 Avr 2012
You can achieve this by using the TeX interpreter as shown in the following example:
% set different fonts
ylabel('\fontname{Arial}This is Arial \fontname{Times}This is Times')
% set different font angles
xlabel('\bfbold text \rm\itor italic text\rm')

Plus de réponses (0)

Produits


Version

R2011b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by