h5analysis.plot_exporter.plot_image

h5analysis.plot_exporter.plot_image(fig, ax, x, y, z, cmap='CET_R4', levels=None, aspect='equal', colorbar=True, zlabel='', fontsize_colorbar='medium', **kwargs)

Plots a contourplot in the created figure

Parameters:
  • fig (object) – matplotlib Figure object

  • ax (object) – matplotlib Axes object

  • x (1d array) – coordinates of the primary axis

  • y (1d array) – coordinates of the secondary axis

  • z (1d array) – values corresponding to the (x,y) pairs

  • cmap (string) – name of matplotlib colourmap

  • levels (int) – determines how many levels the z data should be binned in

  • aspect ([equal, auto]) – Set the axis to scale or stretch figszize

  • colorbar (Boolean) – Display a colorbar

  • zlabel (string) – Label of the colorbar

  • fontsize_colorbar (string or int) – Fontsize of the colorbar ticks