triqs.plot.mpl_interface

Matplotlib front-end for the TRIQS plot protocol.

This module exposes oplot(), a thin wrapper around matplotlib.pyplot.plot that consumes the protocol defined in triqs.plot.protocol. Any object implementing _plot_ (or registered in plot_function_table), as well as plain numpy arrays, callables and iterables of (x, y) pairs, can be passed directly to oplot().

matplotlib.pyplot is re-exported as plt and matplotlib.pyplot.subplots as subplots for convenience. The legacy helpers oplotr(), oploti() and matplotlib.axes.Axes.oplot are deprecated and emit FutureWarning.

Functions

oplot(obj, *opt_list[, axes])

Plot a protocol-aware object onto a matplotlib axes.

oploti(obj, *opt_list, **opt_dict)

Plot the imaginary part of obj via oplot() with mode='I'.

oplotr(obj, *opt_list, **opt_dict)

Plot the real part of obj via oplot() with mode='R'.

use_amsmath()

Configure matplotlib to render math labels with LaTeX + amsmath.