Why is the difference between the figure's Position and OuterPosition not integer?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'd expect that the Position and the OuterPosition of a figure in pixels units differs by an integer number. But on my Windows7/64, Matlab 2015b system I get:
FigH = figure('Units', 'pixels')
get(FigH, 'Position')
% 289 388 560 420
get(FigH, 'OuterPosition')
% 284.56 383.22 568.89 505.78
Or:
set(FigH, 'OuterPosition', [100, 100, 400, 300]);
get(FigH, 'Position')
% 104.11 104.11 391.11 215.11
0 comentarios
Más respuestas (1)
Walter Roberson
el 18 de Dic. de 2015
I would never expect the difference to differ by an integer number of pixels. DefaultAxesUnits is normalized and while DefaultAxesOuterPosition is [0 0 1 1], DefaultAxesPosition is [.13 0.11 0.775 0.815]
Any default that is in normalized units is unlikely to come out as integral number of pixels.
1 comentario
Ver también
Categorías
Más información sobre Graphics Object Properties en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!