Use Latex for all fonts in plot

48 visualizaciones (últimos 30 días)
user20912
user20912 el 5 de Dic. de 2024
Editada: Fintan Healy el 7 de Dic. de 2024
Hi,
I would like to use latex on every font I use on a plot. Is there a better way to do this instead of indicating the interpreter on every line?
I already have use:
set(groot, 'defaultAxesTickLabelInterpreter','latex')
set(groot, 'defaultLegendInterpreter','latex')
which works for ticks and legend, but what about titles, numbers on colorbar and contour numbers?
Thanks in advance,

Respuesta aceptada

Fintan Healy
Fintan Healy el 7 de Dic. de 2024
Editada: Fintan Healy el 7 de Dic. de 2024
set(groot, 'DefaultTextInterpreter', 'latex')
As well as the two you set, I also set the default text interpreter

Más respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by