How to change the title of a plot?

12 ビュー (過去 30 日間)
M G
M G 2011 年 3 月 22 日
Hey guys,
I would like to change the title of my plots. I am getting some information using: get(gca) and I can see the "Title = [573.003]" there but I don't know how to change the plots title from its default name (figure 1) to another name.
I appreciate very much your help, Mehdi

採用された回答

Paulo Silva
Paulo Silva 2011 年 3 月 22 日
set(gcf,'NumberTitle','off') %don't show the figure number
set(gcf,'Name','Whatever you want for the figure name') %select the name you want
  4 件のコメント
M G
M G 2011 年 3 月 22 日
Thanks a lot :)
Matt Tearle
Matt Tearle 2011 年 3 月 22 日
To see all the functions that help you locate graphics objects, look in the doc: MATLAB -> Functions -> Graphics -> Handle Graphics -> Graphics Object Identification
You'll see gca, gcf, and gco (current object), as well as some others like findobj
To see what all the properties are for a given type of object, look in the doc: MATLAB -> User's Guide -> Handle Graphics Property Browser
This has all the possible graphics objects, and lists all the properties (with descriptions about what they do). *Very* useful.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTitle についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by