triqs.plot.protocol
Definition of the TRIQS plot protocol.
The plot protocol is the convention TRIQS objects use to describe
themselves to a plotting backend (typically
triqs.plot.mpl_interface). An object supports the protocol
if it satisfies one of:
it has a method
_plot_(opt_dict)returning a list of curve dictionaries, orits type is registered in
plot_function_table, mapping to a free functionf(obj, opt_dict)returning the same.
Each returned curve dictionary holds the keyword arguments forwarded
to matplotlib by oplot(): at minimum
xdata and ydata, and optionally label, plot_function
('plot', 'bar', …), xlabel, ylabel, title,
xticks, zdata, legend, plus any line-property kwargs.
Functions
|
Return the slice selecting entries of an ordered array within a window. |
|
Apply the plot protocol to an arbitrary object. |
Module Attributes
dict : Registry mapping |