How to make a zoom in y map in MATLAB Visualizations Custom

조회 수: 13 (최근 30일)
Dario Gregory
Dario Gregory 2020년 8월 4일
댓글: Cris LaPierre 2020년 8월 4일
In MATLAB Visualizations Custom (no starter code) and using the geoscatter and geobasemap commands, I have created the map, but not now I need to change the zoom in, so the detail is not appreciated.
here is my code:
% Enter your MATLAB code below
lat = thingSpeakRead(1110939,'Fields',1,'ReadKey','JMG49LJ8KIUIKGDO','NumPoints',1,'Timeout',20);
lon = thingSpeakRead(1110939,'Fields',2,'ReadKey','JMG49LJ8KIUIKGDO','NumPoints',1,'Timeout',20);
geoscatter(lat,lon,'h');
geobasemap('streets');
I need the map to look something like this:
Someone can tell me how I can vary the zoom in?

답변 (1개)

Cris LaPierre
Cris LaPierre 2020년 8월 4일
Can you add this to your code?
geolimits([-12.210 -11.923],[-77.306 -76.936])
  댓글 수: 1
Cris LaPierre
Cris LaPierre 2020년 8월 4일
You can run your code in MATLAB (I ran it in a live script) and then use the Axes toolbar to interactively zoom in on the map to get the positioning you want. As you do so, you will see the corresponding code underneath the figure. Click the Update Code button to add it to your script. Then copy and paste that to your visualization code.

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

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by