module niftyone.figures.factory

Factory for creating different figures.

Global Variables

  • view_registry

function register

register(name: str) → Callable

Register view be callable in figure generation pipeline.


function create_view

create_view(
    view: str,
    view_kwargs: dict[str, typing.Any] | None,
    join_entities: list[str],
    queries: list[str]
) → View

Create a registered view.


function create_views

create_views(config: dict[str, typing.Any]) → list['View']

Create selected views dynamically from config.


class View

Base class for a View.

method View.__init__

__init__(
    queries: list[str],
    join_entities: list[str] | None,
    view_kwargs: dict[str, typing.Any]
) → None

method View.create

create(
    records: list[pandas.core.series.Series],
    out_dir: pathlib.Path,
    overwrite: bool
) → None

Create and save figure from a list of relevant records.