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 toself.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
xlabelfor the plot.- ylabelcallable
ylabel(name) -> strproducing 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\). DefaultFalse.
- Returns:
- list of dict
One dictionary per target-space element to be plotted, with keys
xlabel,ylabel,xdata,ydata,labeland any pass-through options fromopt_dict.
- Raises:
- ValueError
For an unknown
modevalue, or formode='S'whenallow_spectral_modeisFalse.