:orphan:
# TSMonitorLGCtxDestroy
Destroys a line graph context that was created with `TSMonitorLGCtxCreate()`. 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSMonitorLGCtxDestroy(TSMonitorLGCtx *ctx)
```
Collective


## Input Parameter

- ***ctx -*** the monitor context





## Note
Pass to `TSMonitorSet()` along with the context and `TSMonitorLGTimeStep()`


## See Also
 [](ch_ts), `TS`, `TSMonitorLGCtxCreate()`, `TSMonitorSet()`, `TSMonitorLGTimeStep();`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/extchemfield.c.html">src/ts/tutorials/extchemfield.c</A><BR>


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


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