arim.plot.plot_bscan#

arim.plot.plot_bscan(frame, timetraces_idx, use_dB=True, ax=None, title='B-scan', clim=None, interpolation='none', draw_cbar=True, cmap=None, savefig=None, filename='bscan')[source]#

Plot Bscan (timetraces vs time)

Parameters:
  • frame (Frame)

  • timetraces_idx (slice or tuple or ndarray) – timetraces to use. Any valid numpy array is accepted.

  • use_dB (bool, optional)

  • ax (matplotlib axis, optional) – Where to draw. Default: create a new figure and axis.

  • title (str, optional) – Title of the image (default: “Bscan”)

  • clim (tuple, optional) – Color limits of the image.

  • interpolation (str, optional) – Image interpolation type (default: “none”)

  • draw_cbar (bool, optional)

  • cmap (str, optional)

  • savefig (bool, optional) – Default: use conf["savefig"]

  • filename (str, optional) – Default: “bscan”

Returns:

  • ax (matplotlib axis)

  • im (matplotlib image)

Examples

>>> arim.plot.plot_bscan(frame, frame.tx == 0)