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)

 Accepted Answer

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

4 Comments

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')
Thanks again!
As always, my pleasure!

Sign in to comment.

More Answers (0)

Categories

Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange

Asked:

A
A
on 11 May 2015

Commented:

on 11 May 2015

Community Treasure Hunt

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

Start Hunting!