triqs.plot.protocol.plot_function_table

triqs.plot.protocol.plot_function_table = {<class 'triqs.stat.histograms.Histogram'>: <function plot>}

dict : Registry mapping type to a plot-protocol function.

Used for types that cannot host a _plot_ method directly, such as C++-wrapped classes. Each value is a callable f(obj, opt_dict) that returns a list of curve dictionaries as described in the module docstring.

Examples

Registering triqs.stat.Histogram, as done in triqs/stat/__init__.py:

from .histograms import Histogram
from .histogram import plot
from triqs.plot.protocol import plot_function_table
plot_function_table[Histogram] = plot