pyimcom.diagnostics.context_figure

Context manager for writing report figures.

Classes

ReportFigContext

This is a context manager for report figures in PyIMCOM.

Module Contents

class ReportFigContext(mpl, plt)[source]

This is a context manager for report figures in PyIMCOM.

Parameters:
  • mpl (class) – The matplotlib module.

  • plt (class) – The pyplot submodule.

mpl[source]

The matplotlib module.

Type:

class

plt[source]

The pyplot submodule.

Type:

class

env_backend

The matplotlib backend in the environment.

Type:

str

usetex

Enviroment self.usetex setting.

Type:

bool or None

__init__()[source]

Constructor.

__enter__()[source]

Set up local configuration.

__exit__()[source]

Restore old settings.

mpl[source]
plt[source]
__enter__()[source]
__exit__(exc_type, exc_val, exc_tb)[source]