In the graph given in the problem, depth is the vertical axis. As described in the question, we can intuitively see the change of seawater cross section. In the graph that we drew , we chose depth as the horizontal axis in order to conform to the usual habit
