필터 지우기
필터 지우기

How to list property values

조회 수: 2 (최근 30일)
David Koenig
David Koenig 2011년 11월 5일
I am using plot and other graphics commands that require setting property values. Is there a way I can see all the properties that I can set values to?
If I use >>set(gcf)
I get a list but 'FontSize', for example, is not among the list.
I am specifically looking for a way to set the color of text in a 'text' statement on a graph.
Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 5일
Figures do not have a FontSize property.
If you
set(text())
then you will see that there is a property named 'Color'.
Generally speaking, the graphics command documentation for a low-level object will have a reference to the place you can find the (documented) properties for the object. For example, http://www.mathworks.com/help/techdoc/ref/text.html says near the top,
For a list of properties, see Text Properties.
where Text Properties is a link to this page
There are also undocumented properties. For more information on those, please see Yair's blog on them

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by