plot_A_time (method)

plot_A_time(data, index_list=[0], alpha=None, alpha_index=0, is_fft=False, is_elecorder=False, freq_max=20000, is_norm=False, unit='SI', data_list=[], legend_list=[], color_list=[], save_path=None, y_min=None, y_max=None, mag_max=None, is_auto_ticks=True, fig=None, subplot_index=None)[source]

Plots a field as a function of time

Parameters
  • data (Data) – a Data object

  • index_list (list) – list of indices to take from a components axis

  • alpha (float) – angle value at which to slice

  • alpha_index (int) – angle index at which to slice

  • is_fft (bool) – boolean indicating if we want to plot the time-fft below the plot

  • is_elecorder (bool) – boolean indicating if we want to use the electrical order for the fft axis

  • freq_max (int) – maximum value of the frequency for the fft axis

  • is_norm (bool) – boolean indicating if the field must be normalized

  • unit (str) – unit in which to plot the field

  • data_list (list) – list of Data objects to compare

  • legend_list (list) – list of legends to use for each Data object (including reference one) instead of data.name

  • color_list (list) – list of colors to use for each Data object

  • save_path (str) – path and name of the png file to save

  • y_min (float) – minimum value for the y-axis

  • y_max (float) – maximum value for the y-axis

  • mag_max (float) – maximum alue for the y-axis of the fft

  • is_auto_ticks (bool) – in fft, adjust ticks to freqs (deactivate if too close)

  • fig (Matplotlib.figure.Figure) – existing figure to use if None create a new one