Control the size of worldmap

Hello,
I have a GUI that produces a world map based on the user inputted latitude, longitude and number of cells. The map appears inside the GUI. My issues is that the map is a different size each time depending on the area it is displaying. I would like to set a limit for the map so that it always fits inside my GUI. I looked at the properties for axesm but didn't see what I was looking for.
Anybody know how I do this?
Thanks

답변 (1개)

Chad Greene
Chad Greene 2015년 4월 20일

0 개 추천

You may be able to use set(gca,'position',[lowerleftx lowerlefy width height]).

댓글 수: 2

MCM
MCM 2015년 4월 21일
I think that is one piece of what I need to do. The map is different sizes depending on the area I'm displaying. While a position array works well for one map, it doesn't for the next one. I want to make it relative to the GUI figure, so that no matter what (even if user shrinks or expands figure) the map displays properly.
MCM
MCM 2015년 4월 21일
'OuterPosition' may be the better property to use. It seems to work better. Doesn't behave exactly how I want but closer

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

카테고리

도움말 센터File Exchange에서 Geographic Plots에 대해 자세히 알아보기

태그

질문:

MCM
2015년 4월 20일

댓글:

MCM
2015년 4월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by