:orphan:
# PetscDrawLGAddPoint
Adds another point to each of the line graphs. The new point must have an X coordinate larger than the old points. 
## Synopsis
```
#include "petscdraw.h"  
PetscErrorCode PetscDrawLGAddPoint(PetscDrawLG lg, const PetscReal *x, const PetscReal *y)
```
Logically Collective


## Input Parameters

- ***lg -*** the line graph context
- ***x -*** array containing the x coordinate for the point on each curve
- ***y -*** array containing the y coordinate for the point on each curve





## Notes
You must call `PetscDrawLGDraw()` to display any added points

Call `PetscDrawLGReset()` to remove all points


## See Also
 `PetscDrawLG`, `PetscDrawLGCreate()`, `PetscDrawLGAddPoints()`, `PetscDrawLGAddCommonPoint()`, `PetscDrawLGReset()`, `PetscDrawLGDraw()`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex68.c.html">src/ksp/ksp/tutorials/ex68.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex69.c.html">src/ksp/ksp/tutorials/ex69.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/draw/utils/lg.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)  
