htfa.brainnet.annotate_pair

htfa.brainnet.annotate_pair(left, right, titles, caption=None, width=1200, crop=None)[source]

Two frames side by side under a header band with titles and a caption.

Parameters:
left, rightpath or PIL image

Frames of equal size.

titles(str, str)

Panel titles; a "\n" starts a smaller subtitle line.

captionstr, optional

A line centered under the titles (e.g. a time counter).

widthint

Output width in pixels.

crop(left, top, right, bottom), optional

Region of each frame to show. Default: the box around all non-white pixels of both frames.

Returns:
PIL.Image.Image

Text sits only in the header band, never over the brain.