athena.plotting.utils module

Summary

Functions:

colormap

Visualise a colormap.

get_layout

make_cbar

Generate a colorbar for the given axes.

savefig

Reference

make_cbar(ax, title, norm, cmap, cmap_labels, im=None, prefix_labels=True)[source]

Generate a colorbar for the given axes.

Parameters
  • ax (Axes) – axes for which to plot colorbar

  • title (str) – title of colorbar

  • norm – Normalisation instance

  • cmap (Colormap) – Colormap

  • cmap_labels (dict) – colorbar labels

savefig(fig, save)[source]
colormap(cmap)[source]

Visualise a colormap.

Parameters

cmap (Colormap) –

get_layout(nx, ny=None, max_col=5, max_row=None)[source]