Size of displayed figure is different from position property

2 views (last 30 days)
Hi,
I am producing a figure with a set position
set(h,'Position',[l b w h])
but the figure's position as displayed on my screen is different from the above position. I checked whether the position changed somehow by my code but
get(h,'Position') gives [l b w h]
Does anyone know why? It's really frustrating.
Thanks.

Answers (1)

Stephen23
Stephen23 on 11 Jan 2016
Edited: Stephen23 on 11 Jan 2016
Check the following figure properties:
It may be that you should be controlling the OuterPosition rather than the position property. Also make sure that the units are correct for your code.
  2 Comments
Giorgos Minas
Giorgos Minas on 11 Jan 2016
I did set my units to centimeters and I control the outerposition too. But again the position is different from what I see displayed
Stephen23
Stephen23 on 11 Jan 2016
Can you explain in more details how it is different? Some supporting information would give us more idea of what is happening. A screen shot would be nice, and can you please copy-and-paste your code too.

Sign in to comment.

Categories

Find more on Tables in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!