plot_section_contourf#

plot_section_contourf(title, data_draw, depth_array, lon_min, lon_max, lat_min, lat_max, path_save='.', name_save='figure', n_colors=100, n_ticks=5)[source]#

Plot a vertical section using contourf with automatic color normalization.

This function visualizes a 2D (depth × distance) dataset using filled contours. The color scale is automatically normalized based on percentiles (5–95%) and uses a discrete ‘jet’ colormap with n_colors levels.

Parameters:
  • title (str) – Figure title.

  • data_draw (np.ndarray) – 2D array of shape (depth, M).

  • depth_array (np.ndarray) – 2D array of depth values with the same shape as data_draw.

  • lon_min (float) – Longitude range of the section.

  • lon_max (float) – Longitude range of the section.

  • lat_min (float) – Latitude range of the section.

  • lat_max (float) – Latitude range of the section.

  • path_save (str, optional) – Output directory.

  • name_save (str, optional) – Base filename (without extension).

  • n_colors (int, optional) – Number of discrete color bins.

  • n_ticks (int, optional) – Number of x-axis ticks.

Returns:

Full path to the saved PNG file.

Return type:

str