glidertools.plot.plot_functions

class glidertools.plot.plot_functions(**kwargs)

Plot data (gridded or not) as a section and more.

This function provides several options to plot data as a section. The default action when called is to plot data as a pcolormesh section.

See the individual method help for more information about each plotting method.

Parameters:
  • args (array_like) –

    • same length x, y, z. Will be gridded with depth of 1 meter.

    • x(m), y(n), z(n, m) arrays

    • z DataFrame where indicies are depth and columns are dives

    • z DataArray where dim0 is dives and dim1 is depth, or

      contains information about time and depth axes

  • kwargs (key-value pairs) –

    • ax - give an axes to the plotting function

    • robust - use the 0.5 and 99.5 percentile to set color limits

    • gridding_dz - gridding depth [default 1]

__init__()

Methods

__init__()

bin_size(depth[, bins, ax, add_colorbar])

Plots a 2D histogram of the depth sampling frequency.

contourf(*args, **kwargs)

Plot a section plot of the dives with x-time and y-depth and z-variable.

pcolormesh(*args, **kwargs)

Plot a section plot of the dives with x-time and y-depth and z-variable.

save_figures_to_pdf(fig_list, pdf_name, ...)

Saves a list of figure objects to a pdf.

scatter(x, y, z[, ax, robust])

Plot a scatter section plot of a small dataset (< 10 000 obs)

section3D(dives, depth, x, y, variable[, ...])

Returns an interactive 3D plot in an HTML page.