Typesetting in a figure legend

1 visualización (últimos 30 días)
pxg882
pxg882 el 23 de En. de 2013
Hi,
I want to be able to write '\bar{u}' and '\bar{\bar{u}}', for example, in the legend of a figure I have produced. Does anybody know how to do this?
The regular TeX code doesn't seem to work.
Thanks

Respuestas (1)

John Petersen
John Petersen el 23 de En. de 2013
Try this:
h=legend('$\bar{u}$', '$\bar{\bar{u}}$')
set(h,'interpreter','latex')

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by