How do I recenter world map so that North America is at the center instead of Africa?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Vivek Kumar
el 24 de Mayo de 2016
Comentada: Vivek Kumar
el 24 de Mayo de 2016
When I do the following it plots the world map with Africa at the center because it is 0 longitude. Is it possible to recenter the map at North America?
worldmap('World') load coast plotm(lat, long);
0 comentarios
Respuesta aceptada
Amy Haskins
el 24 de Mayo de 2016
A simple solution is to use the worldmap syntax that specifies latitude and longitude limits. When you call worldmap('world'), you end up with longitude limits of [-180 180]. The following will be closer to what you're looking for. You can change the limits to get the exact center point you want.
worldmap([-90 90], [-270 90])
Más respuestas (0)
Ver también
Categorías
Más información sobre Mapping Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!