triqs.plot.protocol.plot_function_table
- triqs.plot.protocol.plot_function_table = {<class 'triqs.stat.histograms.Histogram'>: <function plot>}
dict : Registry mapping
typeto a plot-protocol function.Used for types that cannot host a
_plot_method directly, such as C++-wrapped classes. Each value is a callablef(obj, opt_dict)that returns a list of curve dictionaries as described in the module docstring.Examples
Registering
triqs.stat.Histogram, as done intriqs/stat/__init__.py:from .histograms import Histogram from .histogram import plot from triqs.plot.protocol import plot_function_table plot_function_table[Histogram] = plot