plot_mode
plot_mode#
method
- SqueezedState.plot_mode(mode, n=100, x_range=None, y_range=None, ax=None, **kwargs)#
Plots the Wigner function of the specified mode.
- Parameters
mode (int) – The mode to plot.
n (int) – The number of points per axis to plot. Default is 100.
x_range (tuple) – The range of the x axis to plot as a tuple, (eg. (-5,5)). Defualt attempts to find the range automatically.
y_range (tuple) – The range of the y axis to plot as a tuple, (eg. (-5,5)). Defualt attempts to find the range automatically.
ax (matplotlib.axes.Axes) – The axis to plot on, by default it creates a new figure.
**kwargs – Keyword arguments to pass to matplotlib.pyplot.contourf.