Borrar filtros
Borrar filtros

map size mapping toolbox

7 visualizaciones (últimos 30 días)
Leon
Leon el 6 de Jul. de 2012
Respondida: Harsh Mahalwar el 14 de Jun. de 2023
I am drawing a map of a very small region using matlab mapping toolbox using the following:
worldmap([lat(1) lat(end)],[lon(1) lon(end)]) contourfm(lat,lon,data) linem(lat,long) %coastline
The problem is that the region is so small that the figure appears very small as well, which I find strange. How can I make the map as big as the figure size??
Thanks a lot!

Respuestas (1)

Harsh Mahalwar
Harsh Mahalwar el 14 de Jun. de 2023
Hey Leon,
You can adjust the figure size with the help of geolimits function. If the figure is to small then you can simply set the frame accordingly!
With geolimit function, you have 2 option,
  1. Adjust the frame automatically
geolimits auto
2. Adjust the frame manually
geolimits([28 65],[-158 -100])
the above code sets the frame to fit the western us.
You can learn more about geolimits from the following documentation.
I hope it helps you in your further projects.
Thanks and regards,
Harsh Mahalwar

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by