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

16 ビュー (過去 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 Center および File ExchangeGeographic Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by