eelbrain.fmtxt.Image.from_array

classmethod Image.from_array(array, name='array', format='png', alt=None, height=None, width=None)

Create an Image object from an array.

Parameters:
  • array (array_like) – RGBA image array.

  • name (None | str) – Name for the target image.

  • format (str) – Format to save (default 'png').

  • alt (None | str) – Alternate text, placeholder in case the image can not be found (HTML alt tag).

  • height (int) – Target height of the image; currently only used for iPython display.

  • width (int) – Target width of the image; currently only used for iPython display.