Mapping Toolbox | ![]() ![]() |
Removes white-space around a map
Syntax
Description
tightmap sets the MATLAB axis limits to be tight around the map in the current axes. This eliminates or reduces the white border between the map frame and the axes box. Use axis auto
to undo tightmap
.
Examples
Display a map of Africa. Notice the white space between the map frame and the edge of the axes box.
axesm('miller','maplatlim',[-40 40],'maplonlim',[-20 60]) framem; gridm; mlabel; plabel plotm(coast)
Now use tightmap
to reduce the "wasted space":
Limitations
The axis limits are fixed. If a change in the projection parameters changes the size or position of the map display within the projected coordinate system, execute tightmap
again.
See Also
panzoom |
Pan and zoom on a 2D plot |
zoom |
Zoom in and out on a 2-D plot |
paperscale |
Figure paper size for a given map scale |
axesscale |
Resize axes for equivalent scale |
previewmap |
View map at printed size |
![]() | textm | time2str | ![]() |