# PetscDrawSPAddPoints
Adds several points to each of the scatter plot point curves. 
## Synopsis
```
#include "petscdraw.h" 
#include "petscsys.h" 
PetscErrorCode PetscDrawSPAddPoints(PetscDrawSP sp, int n, PetscReal **xx, PetscReal **yy)
```
Not collective


## Input Parameters

- ***sp -*** the scatter plot context
- ***xx,yy -*** points to two arrays of pointers that point to arrays containing the new x and y points for each curve.
- ***n -*** number of points being added, each represents a subarray of length dim where dim is the value from `PetscDrawSPGetDimension()`





## Note
The new points will not be displayed until a call to `PetscDrawSPDraw()` is made


## See Also
 `PetscDrawSPAddPoint()`, `PetscDrawSP`, `PetscDrawSPCreate()`, `PetscDrawSPReset()`, `PetscDrawSPDraw()`, `PetscDrawSPAddPointColorized()`

## Level
intermediate

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


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