# PetscDrawSetDisplay
Sets the display where a `PetscDraw` object will be displayed 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawSetDisplay(PetscDraw draw, const char display[])
```

## Input Parameters

- ***draw -*** the drawing context
- ***display -*** the X windows display





## See Also
 `PetscDraw`, `PetscDrawOpenX()`, `PetscDrawCreate()`

## Level
advanced

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


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