arpes.plotting.utils.simple_ax_grid#

arpes.plotting.utils.simple_ax_grid(n_axes, figsize=(0, 0), **kwargs)[source]#

Generates a square-ish set of axes and hides the extra ones.

It would be nice to accept an “aspect ratio” item that will attempt to fix the grid dimensions to get an aspect ratio close to the desired one.

Parameters:
  • n_axes (int) – number of axis # <== checkme!

  • figsize (tuple[float, float]) – Pass to figsize in plt.subplots.

  • kwargs – pass to plg.subplot

Returns:

The figure, the first n axis which are shown, and the remaining hidden axes.