Matlab adds additional margin to an image!
이전 댓글 표시
I'm going to develope an app for calculating beam deflections. for inserting images of supports, when I insert the images matlab automatically adds unwanted margins to my pictures.Does anyone know how can I solve this issue?

댓글 수: 2
Geoff Hayes
2019년 5월 29일
Amin - are the "unwanted" margins the space between the triangles and the green rectangle? Are you showing/drawing these objects in one axes or more? Please clarify.
Amin Tabrizian
2019년 5월 29일
채택된 답변
추가 답변 (1개)
Walter Roberson
2019년 5월 29일
2 개 추천
uiaxes() with 'position' places according to the inner position property, not according to the outer position property.
If you set the second axes Visible property on, the labels will appear, and it will be obvious that the blank space is exactly where the labels would be, in the area between the inner position and the outer position.
Traditional axes are not exactly the same. With traditional axes, when you turn the axes visibility off, the layout routine is re-run and the visible area expands to (closer to) the outer position. You would get overlap because your position overlap, but it would be clearly defined and obvious as to what had happened.
(If you do the experiment with traditional axes() remember to set the Units to Pixels as the default is normalized.)
댓글 수: 1
Amin Tabrizian
2019년 5월 29일
편집: Amin Tabrizian
2019년 5월 29일
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


