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

13 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Cris LaPierre
Cris LaPierre il 4 Ago 2020
Can you add this to your code?
geolimits([-12.210 -11.923],[-77.306 -76.936])
  1 Commento
Cris LaPierre
Cris LaPierre il 4 Ago 2020
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.

Accedi per commentare.

Categorie

Scopri di più su Geographic Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by