| Mapping Toolbox | Search  Help Desk |
| tightmap | Examples See Also |
Removes white-space around a map
Syntax
tightmap
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. Useaxis 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":
tightmap
Limitations
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 |