Trace plotting

stride.plotting.plot_traces.plot_trace(*args, axis=None, colour='black', line_style='solid', title=None, **kwargs)[source]

Utility function to plot individual traces using matplotlib.

Parameters:
  • args (arrays) – Optional time grid and signal to be plotted.

  • axis (matplotlib figure, optional) – Figure in which to make the plotting, defaults to new empty figure.

  • colour (str, optional) – Colour to apply to the points, defaults to red.

  • line_style (str, optional) – Line style to be used.

  • title (str, optional) – Figure title, defaults to empty title.

Returns:

Generated matplotlib figure

Return type:

matplotlib figure

stride.plotting.plot_traces.plot_gather(*args, skip=1, time_range=None, norm=True, norm_trace=True, colour='black', line_style='solid', title=None, axis=None, **kwargs)[source]

Utility function to plot gather using matplotlib.

Parameters:
  • args (arrays) – Optional trace ID grid, optional time grid and signal to be plotted.

  • skip (int, optional) – Traces to skip, defaults to 1.

  • time_range (tuple, optional) – Range of time to plot, defaults to all time.

  • norm (bool, optional) – Whether or not to normalise the gather, defaults to True.

  • norm_trace (bool, optional) – Whether or not to normalise trace by trace, defaults to True.

  • axis (matplotlib figure, optional) – Figure in which to make the plotting, defaults to new empty figure.

  • colour (str, optional) – Colour to apply to the points, defaults to red.

  • line_style (str, optional) – Line style to be used.

  • title (str, optional) – Figure title, defaults to empty title.

Returns:

Generated matplotlib figure

Return type:

matplotlib figure