How can I change the axes names with symbols in a .fig figure file without the .m file?

 採用された回答

Ben11
Ben11 2014 年 7 月 7 日
編集済み: Ben11 2014 年 7 月 7 日

0 投票

Do you mean in GUIDE? If so double click on the axes and the inspector should pop up, then you can change the axes properties. Is that what you meant? Or the title of the actual plot displayed inside the axis?

3 件のコメント

Selis
Selis 2014 年 7 月 7 日
編集済み: Selis 2014 年 7 月 7 日
I can change the axes names, but how can I place symbolic characters in the axis name. When using an m.file to create the figure, I can use latex to create the symbols, how will I do that using the gui? Foe example, how can i write the Greek letters phi or epsilon symbolically in the axis name in GUI?
Ben11
Ben11 2014 年 7 月 8 日
Oh then I'm puzzled sorry!
Image Analyst
Image Analyst 2014 年 7 月 8 日
Selis, then why did you accept the answer? It leaves us wondering if you need help or not anymore. If you do, then start a new question since not many people will look at this one anymore since you accepted it.

サインインしてコメントする。

その他の回答 (1 件)

Geoff Hayes
Geoff Hayes 2014 年 7 月 8 日

1 投票

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')
The above example is largely taken from adding text to graphs.
A full list of supported symbols can be found in the String section of http://www.mathworks.com/help/matlab/ref/text_props.html.

カテゴリ

ヘルプ センター および File ExchangeLabels and Annotations についてさらに検索

タグ

質問済み:

2014 年 7 月 7 日

回答済み:

2014 年 7 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by