freealg.distributions.Wigner.plot_branches#
- Wigner.plot_branches(x=None, y=None, latex=False, save=False, **kwargs)#
Plot branches of the spectral curve of Stieltjes transform.
- Parameters:
- xnumpy.array, default=None
The x axis of the grid where the Stieltjes transform is evaluated. If None, an interval slightly larger than the support interval of the spectral density is used.
- ynumpy.array, default=None
The y axis of the grid where the Stieltjes transform is evaluated. If None, a grid on the interval
[-1, 1]is used.- latexbool, default=False
If True, the plot is rendered using LaTeX. This option is relevant only if
plot=True.- savebool, default=False
If not False, the plot is saved. If a string is given, it is assumed to the save filename (with the file extension). This option is relevant only if
plot=True.- **kwargsdict
Parameters to pass to
freealg.visualization.domain_coloring().
See also
Examples
>>> import numpy >>> from freealg.distributions import FreeLevy >>> # Create an object of the class >>> fl = FreeLevy(t=[2.0, 5.5], w=[0.75, 1-0.75], lam=0.1, a=0, ... sigma=0.9) >>> # Plot on a grid >>> x = numpy.linspace(0, 4) >>> y = numpy.linspace(-1, 1) >>> fl.plot_branches(x, y)