xoa.core.plot.plot_depth_section

xoa.core.plot.plot_depth_section#

xoa.core.plot.plot_depth_section(ax, x, z, data, method='pcolormesh', invert_yaxis=False, **kwargs)[source]#

Plot a vertical section from arrays

Parameters:
  • ax (matplotlib.axes.Axes)

  • x (array_like(nz, nh)) – Horizontal coordinates, depths and values, that all have the vertical dimension first. With the "flat" shading of pcolormesh, the values may have one point less along each dimension.

  • z (array_like(nz, nh)) – Horizontal coordinates, depths and values, that all have the vertical dimension first. With the "flat" shading of pcolormesh, the values may have one point less along each dimension.

  • data (array_like(nz, nh)) – Horizontal coordinates, depths and values, that all have the vertical dimension first. With the "flat" shading of pcolormesh, the values may have one point less along each dimension.

  • method ({"pcolormesh", "contourf", "contour"}) – Plot method of matplotlib.axes.Axes

  • invert_yaxis (bool) – Invert the vertical axis, which is useful when depths are positive down

  • kwargs – Extra parameters are passed to the plot method

Returns:

matplotlib.cm.ScalarMappable