# PetscDrawLGGetDraw
Gets the draw context associated with a line graph. 
## Synopsis
```
#include "petscdraw.h"  
PetscErrorCode PetscDrawLGGetDraw(PetscDrawLG lg, PetscDraw *draw)
```
Not Collective, if lg is parallel then draw is parallel


## Input Parameter

- ***lg -*** the line graph context



## Output Parameter

- ***draw -*** the draw context





## See Also
 `PetscDrawLGCreate()`, `PetscDraw`, `PetscDrawLG`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/utils/lgc.c.html#PetscDrawLGGetDraw">src/sys/classes/draw/utils/lgc.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/utils/lgc.c)


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