How to get default 'OuterPosition' for a figure?

Hi guys,
If I have the below figure, how can I get its default 'OuterPosition'? I need this information so I can manipulate the 'OuterPosition' based on what the default value is.
Thanks
surf(peaks)

 채택된 답변

Star Strider
Star Strider 2015년 5월 11일

0 개 추천

You almost answered your own Question!
This works:
figure(3)
surf(peaks)
op = get(gcf,'OuterPosition')
The 'OuterPosition' property is returned in ‘op’.

댓글 수: 4

A
A 2015년 5월 11일
Thank you Star Strider! But is there a way to 'get' it in 'Normalized' units?
I tried: get(gcf, 'Units', 'Normalized', 'OuterPosition');
But gives me an error.
Thank you
The subtle difference between set and get!
This works:
figure(3)
surf(peaks)
set(gcf, 'Units', 'Normalized')
op = get(gcf,'OuterPosition')
A
A 2015년 5월 11일
Thanks again!
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

질문:

A
A
2015년 5월 11일

댓글:

2015년 5월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by