gEconpy.plotting.plot_eigenvalues#
- gEconpy.plotting.plot_eigenvalues(model, A=None, B=None, C=None, D=None, linearize_model_kwargs=None, fig=None, figsize=None, dpi=None, plot_circle=True, **parameter_updates)#
Plot the eigenvalues of the model solution, along with a unit circle.
Eigenvalues with modulus greater than 1 are shown in red, while those with modulus less than 1 are shown in blue. Eigenvalues greater than 10 in modulus are not drawn.
- Parameters:
- model
gEconModel DSGE model object
- A
np.ndarray, optional Matrix of partial derivative, linearized around the steady state. Derivatives taken with respect to variables at t-1. If provided, all of A, B, C and D must be provided.
- B
np.ndarray, optional Matrix of partial derivative, linearized around the steady state. Derivatives taken with respect to variables at t. If provided, all of A, B, C and D must be provided.
- C
np.ndarray, optional Matrix of partial derivative, linearized around the steady state. Derivatives taken with respect to variables at t+1. If provided, all of A, B, C and D must be provided.
- D
np.ndarray, optional Matrix of partial derivative, linearized around the steady state. Derivatives taken with respect to exogenous shocks. If provided, all of A, B, C and D must be provided.
- linearize_model_kwargs: dict, optional
Arguments passed to model.linearize_model. Ignored if A, B, C, D are provided.
- fig: Matplotlib Figure, optional
The figure object to plot on. If not provided, a new figure will be created.
- figsize
tuple[float,float], optional The size of the figure to create.
- dpi
int, optional The resolution of the figure to create.
- plot_circle: bool, optional
Whether to plot the unit circle. Default is True.
- parameter_updates
A dictionary of parameter at which to linearize the model.
- model
- Returns:
MatplotlibFigureThe figure object containing the plot.