exa.core.plotting.plot_helper.plot_bar

Contents

exa.core.plotting.plot_helper.plot_bar#

plot_bar(axs, data, variable, data_type=DataType.FLOAT, title=None, extra_title_text=None, plot_options=None, complex_options=None)#

Create bar plot of complex or real data.

Parameters:
  • axs (list[Axes]) – Plot axes.

  • data (DataArray) – Y-axis data.

  • variable (str) – Key to x-axis data.

  • data_type (DataType) – Type of data (complex or number).

  • title (str | None) – Plot title. If None is given, the title will be automatically generated from data and variables.

  • extra_title_text (str | None) – Optional extra string appended after title and separated by ‘; ‘.

  • plot_options (PlotOptions | None) – Plot options to use for the appearance of the plot. If None give a new instance of PlotOptions is created

  • complex_options (ComplexOptions | None) – Options to change the appearance for figures with complex data. If None give a new instance of ComplexOptions is created

Return type:

None

Notes

Function with a side effect - modifies axes.