lisa.notebook.make_figure#

lisa.notebook.make_figure(width, height, nrows, ncols, interactive=None, **kwargs)[source]#

Make a matplotlib.figure.Figure and its axes.

Parameters:
  • width (int) – Width of the figure.

  • height (int) – Height of the figure.

  • interactive (bool or None) – If True, create an interactive figure. Defaults to True when running under IPython, False otherwise.

Variable keyword arguments:

Forwarded to matplotlib.figure.Figure

Returns:

A tuple of: * matplotlib.figure.Figure * matplotlib.axes.Axes as a scalar, an iterable (1D) or iterable of iterable matrix (2D)