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

12 visualizaciones (últimos 30 días)
Dario Gregory
Dario Gregory el 4 de Ag. de 2020
Comentada: Cris LaPierre el 4 de Ag. de 2020
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?

Respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by