How to make a zoom in y map in MATLAB Visualizations Custom
17 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Cris LaPierre
on 4 Aug 2020
Can you add this to your code?
geolimits([-12.210 -11.923],[-77.306 -76.936])
1 Comment
Cris LaPierre
on 4 Aug 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.
See Also
Categories
Find more on Geographic Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!