triqs.gfs.plot.plot_base.plot_base

triqs.gfs.plot.plot_base.plot_base(self, opt_dict, xlabel, ylabel, X, allow_spectral_mode=False)[source]

Build the curve dictionaries consumed by oplot().

The following plotting options are consumed by this function:

  • name — label prefix for the legend (defaults to self.name).

  • mode — one of 'R' (real), 'I' (imaginary), 'S' (spectral function) or empty (both real and imaginary). Default ''.

  • x_window(xmin, xmax) clipping window on the mesh axis.

Any other entries are forwarded to every curve dictionary.

Parameters:
selfGf

Green’s function being plotted.

opt_dictdict

Plot options.

xlabelstr

xlabel for the plot.

ylabelcallable

ylabel(name) -> str producing the y-axis label from the Green’s function name.

Xarray-like

Mesh values for the x axis.

allow_spectral_modebool, optional

If True, mode='S' is accepted and returns \(-\frac{1}{\pi}\,\mathrm{Im}\, G\). Default False.

Returns:
list of dict

One dictionary per target-space element to be plotted, with keys xlabel, ylabel, xdata, ydata, label and any pass-through options from opt_dict.

Raises:
ValueError

For an unknown mode value, or for mode='S' when allow_spectral_mode is False.