Mapping Toolbox | ![]() ![]() |
Control vertical exaggeration in a map display
Syntax
daspectm(zunits) daspectm(zunits,vfac) daspectm(zunits,vfac,lat,long) daspectm(zunits,vfac,lat,long,az) daspectm(zunits,vfac,lat,long,az,gunits) daspectm(zunits,vfac,lat,long,az,gunits,radius)
Description
daspectm(zunits
) sets the figure 'DataAspectRatio'
property so that the z-axis is in proportion to the x and y projected coordinates. This permits elevation data to be displayed without vertical distortion. The string zunits specifies the units of the elevation data, and can be any string recognized by distdim
.
daspectm(zunits
,vfac) sets the 'DataAspectRatio
' property so that the z-axis is vertically exaggerated by the factor vfac
. If omitted, the default is no vertical exaggeration.
daspectm(zunits
,vfac,lat,long) sets the aspect ratio based on the local map scale at the specified geographic location. If omitted, the default is the center of the map limits.
daspectm(zunits
,vfac,lat,long,az) also specifies the direction along which the scale is computed. If omitted, 90 degrees (west) is assumed.
daspectm(zunits
,vfac,lat,long,az,gunits
) also specifies the units in which the geographic position and direction are given. If omitted, 'degrees
' is assumed.
daspectm(zunits
,vfac,lat,long,az,gunits
,radius) uses the last input to determine the radius of the sphere. If radius
is a string, then it is evaluated as an almanac
body to determine the spherical radius. If numerical, it is the radius of the desired sphere in zunits
. If omitted, the default radius of the Earth is used.
Examples
Show the elevation map of the Korean peninsula with a vertical exaggeration factor of 30:
load korea [latlim,lonlim] = limitm(map,maplegend); worldmap(latlim,lonlim,'none') meshm(map,maplegend,size(map),map) demcmap(map) view(3) daspectm('m',30) tightmap camlight
Limitations
The relationship between the vertical and horizontal coordinates holds only as long as the geoid or scale factor properties of the map axes remain unchanged. If you change the scaling between geographic coordinates and projected axes coordinates, execute daspectm
again.
See Also
daspect |
Data aspect ratio |
paperscale |
Figure paper size for a given map scale |
![]() | crossfix | defaultm | ![]() |