:orphan:
# PetscDrawLGSPDraw
Redraws a line graph and a scatter plot on the same `PetscDraw` they must share 
## Synopsis
```
#include "petscdraw.h"  
PetscErrorCode PetscDrawLGSPDraw(PetscDrawLG lg, PetscDrawSP spin)
```
Collective


## Input Parameters

- ***lg -*** the line graph context
- ***spin -*** the scatter plot





## Developer Note
This code cheats and uses the fact that the `PetscDrawLG` and `PetscDrawSP` structs are the same


## See Also
 `PetscDrawLGDraw()`, `PetscDrawSPDraw()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/utils/lgc.c.html#PetscDrawLGSPDraw">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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
