Source code for sofia_redux.visualization.display.gallery

# Licensed under a 3-clause BSD style license - see LICENSE.rst
import itertools
from typing import (List, Dict, Optional, Tuple,
                    Union, TypeVar)
import numpy as np
import matplotlib.artist as ma
from matplotlib.lines import Line2D
from matplotlib.collections import PathCollection, PatchCollection
from matplotlib.backend_bases import RendererBase

from sofia_redux.visualization import log
from sofia_redux.visualization.display import pane, drawing
from sofia_redux.visualization.display.pane import Pane

__all__ = ['Gallery']

AT = TypeVar('AT', Line2D, PathCollection, PatchCollection, ma.Artist)
PT = TypeVar('PT', pane.Pane, pane.OneDimPane, pane.TwoDimPane)
DT = TypeVar('DT', bound=drawing.Drawing)