# PetscDrawGetCoordinates
Gets the application coordinates of the corners of the window (or page). 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawGetCoordinates(PetscDraw draw, PetscReal *xl, PetscReal *yl, PetscReal *xr, PetscReal *yr)
```
Not Collective


## Input Parameter

- ***draw -*** the drawing object





## Output Parameters

- ***xl -*** the horizontal coordinate of the lower left corner of the drawing region.
- ***yl -*** the vertical coordinate of the lower left corner of the drawing region.
- ***xr -*** the horizontal coordinate of the upper right corner of the drawing region.
- ***yr -*** the vertical coordinate of the upper right corner of the drawing region.



## See Also
 `PetscDraw`, `PetscDrawSetCoordinates()`

## Level
advanced

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


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