symbols in axes titles in .fig
Show older comments
How can I change the axes names with symbols in a .fig figure file without the .m file?
Accepted Answer
More Answers (1)
Geoff Hayes
on 8 Jul 2014
Adding text with symbols to an axes on the GUI is no different than when you create a figure through an m file.
For example, a simple GUI with one axes named (see the Tag property of the widget) axes1 can have its title, x- and y-axis labels set with symbols in the figure's yourFigureName_OpeningFcn method (where yourFigureName is the name of your figure/GUI).
Just add (to this method) something similar to the following
title(handles.axes1,'{\itAe}^{-\alpha\itt}sin\beta{\itt} \alpha<<\beta')
xlabel(handles.axes1,'Time \musec.')
ylabel(handles.axes1,'\epsilon+2\gamma')
A full list of supported symbols can be found in the String section of http://www.mathworks.com/help/matlab/ref/text_props.html.
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!