sme_contrib.plot.concentration_heatmap

sme_contrib.plot.concentration_heatmap(simulation_result, species, title=None, ax=None, cmap=None)

Plot 2d heatmap of species concentration

Plots the concentration of species in the list species from the supplied simulation_result as a 2d heatmap.

Parameters
  • simulation_result (sme.SimulationResult) – A simulation result to plot

  • species (List of str) – The species to plot

  • title (str) – Optionally specify the title

  • ax (matplotlib.axes._subplots.AxesSubplot) – Optionally specify the axes to draw the plot on

  • cmap (matplotlib.Colormap) – Optionally specify the colormap to use

Returns

The axes the plot was drawn on matplotlib.image.AxesImage: The axes of the image

Return type

matplotlib.axes._subplots.AxesSubplot