# TSMonitorSPEigCtxCreate
Creates a context for use with `TS` to monitor the eigenvalues of the linearized operator 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSMonitorSPEigCtxCreate(MPI_Comm comm, const char host[], const char label[], int x, int y, int m, int n, PetscInt howoften, TSMonitorSPEigCtx *ctx)
```
Collective


## Input Parameters

- ***host -*** the X display to open, or null for the local machine
- ***label -*** the title to put in the title bar
- ***x, y -*** the screen coordinates of the upper left coordinate of the window
- ***m, n -*** the screen width and height in pixels
- ***howoften -*** if positive then determines the frequency of the plotting, if -1 then only at the final time



## Output Parameter

- ***ctx -*** the context



## Options Database Key

- ***-ts_monitor_sp_eig -*** plot egienvalues of linearized right hand side





## Notes
Use `TSMonitorSPEigCtxDestroy()` to destroy the context

Currently only works if the Jacobian is provided explicitly.

Currently only works for ODEs u_t - F(t,u) = 0; that is with no mass matrix.


## See Also
 [](chapter_ts), `TSMonitorSPEigTimeStep()`, `TSMonitorSet()`, `TSMonitorLGSolution()`, `TSMonitorLGError()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/interface/tseig.c.html#TSMonitorSPEigCtxCreate">src/ts/interface/tseig.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/interface/tseig.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
