How to change the title of a plot?
조회 수: 17 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
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
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 Exchange에서 Title에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!