arim.plot#

Plotting utilities based on matplotib.

Some default values are configurable via the dictionary arim.plot.conf.

arim.plot.conf#

Dictionary of default values. For some functions, if an argument is not populated, its values will be populated from this dictionary. Example:

# save the figure (independently on conf['savefig])
plot_oyz(data, grid, savefig=True, filename='foo')

# do not save the figure independently on conf['savefig])
plot_oyz(data, grid, savefig=False, filename='foo')

# save the figure depending only if conf['savefig'] is True
plot_oyz(data, grid, filename='foo')
arim.plot.micro_formatter#
arim.plot.milli_formatter#
arim.plot.mega_formatter#

Format the labels of an axis in a given unit prefix. Usage:

import matplotlib.pyplot as plt
ax = plt.plot(distance_vector, data)
ax.xaxis.set_major_formatter(arim.plot.milli_formatter)

RayPlotter(grid, ray, element_index[, ...])

common_dynamic_db_scale(data_list[, area, ...])

Scale such as:

draw_rays_on_click(grid, ray, element_index)

Dynamic plotting of rays on a plot.

plot_bscan(frame, timetraces_idx[, use_dB, ...])

Plot Bscan (timetraces vs time)

plot_bscan_pulse_echo(frame[, use_dB, ax, ...])

Plot a B-scan.

plot_directivity_finite_width_2d(...[, ax])

plot_interfaces(oriented_points_list[, ax, ...])

Plot interfaces on the Oxz plane.

plot_oxz(data, grid[, ax, title, clim, ...])

Plot data in the plane Oxz.

plot_oxz_many(data_list, grid, nrows, ncols)

Plot many Oxz plots on the same figure.

plot_psd(frame[, idx, to_show, ...])

Plot the estimated power spectrum of a timetrace using Welch's method.

plot_tfm(tfm[, y, func_res, interpolation])

Plot a TFM in plane Oxz.