plot_A_2D (method)

plot_A_2D(Xdatas, Ydatas, legend_list=[''], color_list=[(0, 0, 1, 0.5)], linestyle_list=['-'], linewidth_list=[3], title='', xlabel='', ylabel='', fig=None, subplot_index=None, is_logscale_x=False, is_logscale_y=False, is_disp_title=True, is_grid=True, type='curve', is_fund=False, fund_harm=None, x_min=None, x_max=None, y_min=None, y_max=None, xticks=None, save_path=None)[source]

Plots a 2D graph (curve, bargraph or barchart) comparing fields in Ydatas

Parameters
  • Xdata (ndarray) – array of x-axis values

  • Ydatas (list) – list of y-axes values

  • legend_list (list) – list of legends

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

  • linewidth_list (list) – list of line width to use for each curve

  • title (str) – title of the graph

  • xlabel (str) – label for the x-axis

  • ylabel (str) – label for the y-axis

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

  • subplot_index (int) – index of subplot in which to plot

  • is_logscale_x (bool) – boolean indicating if the x-axis must be set in logarithmic scale

  • is_logscale_y (bool) – boolean indicating if the y-axis must be set in logarithmic scale

  • is_disp_title (bool) – boolean indicating if the title must be displayed

  • is_grid (bool) – boolean indicating if the grid must be displayed

  • type (str) – type of 2D graph : “curve”, “bargraph”, “barchart” or “quiver”

  • is_fund (bool) – boolean indicating if the bar corresponding to the fundamental must be displayed in red

  • fund_harm (float) – frequency of the fundamental harmonic

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

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

  • xticks (list) – list of ticks to use for the x-axis