# PetscDrawGetCurrentPoint
Gets the current draw point, some codes use this point to determine where to draw next 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawGetCurrentPoint(PetscDraw draw, PetscReal *x, PetscReal *y)
```
Not collective


## Input Parameter

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



## Output Parameters

- ***x,y -*** the current point





## See Also
 `PetscDraw`, `PetscDrawPushCurrentPoint()`, `PetscDrawPopCurrentPoint()`, `PetscDrawSetCurrentPoint()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/dline.c.html#PetscDrawGetCurrentPoint">src/sys/classes/draw/interface/dline.c</A>


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