# TSMonitorLGGetVariableNames
Gets the name of each component in the solution vector so that it may be displayed in the plot 
## Synopsis
```
#include "petscts.h"  
PetscErrorCode TSMonitorLGGetVariableNames(TS ts, const char *const **names)
```
Collective on ts


## Input Parameter

- ***ts -*** the `TS` context



## Output Parameter

- ***names -*** the names of the components, final string must be NULL





## Note
If the `TS` object does not have a `TSMonitorLGCtx` associated with it then this function is ignored


## See Also
 [](chapter_ts), `TS`, `TSMonitorSet()`, `TSMonitorDefault()`, `VecView()`, `TSMonitorLGSetDisplayVariables()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/interface/tsmon.c.html#TSMonitorLGGetVariableNames">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.html</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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
