exa.core.plotting.plot_helper.plot_colormap

Contents

exa.core.plotting.plot_helper.plot_colormap#

plot_colormap(axs, data, variables, data_type=DataType.FLOAT, title=None, extra_title_text=None, plot_options=None, complex_options=None, **colormap_kwargs)#

Create colormap plots for complex and real data.

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

  • data (DataArray) – Z-axis data.

  • variables (list[str]) – Keys to x-axis and y-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

  • **colormap_kwargs – extra arguments for matplotlib.pyplot.pcolormesh()

Return type:

None

Notes

Function with a side effect - modifies axes.