Below, the image show a High Resolution Orthoimage with a Digital Elevation Model layered on top to create a pseudo 3D map of the Mount Diablo area in California.
This graph was created by using the “Interpolate Line” tool in the 3D Analyst toolbar. This tool can be used on raster, triangulated irregular network (TIN), or terrain datasets. A line can be drawn directly on the map, as the example above, or over a series of points. Then I used the Profile Graph tool to generate the graphic representation of the line.