# PetscDrawClear
Clears graphical output. All processors must call this routine. Does not return until the draw in context is clear. 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawClear(PetscDraw draw)
```
Collective on draw


## Input Parameters

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





## Level
intermediate

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

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/image/drawimage.c.html#PetscDrawClear_Image">PetscDrawClear_Image in src/sys/classes/draw/impls/image/drawimage.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/tikz/tikz.c.html#PetscDrawClear_TikZ">PetscDrawClear_TikZ in src/sys/classes/draw/impls/tikz/tikz.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/win32/win32draw.c.html#PetscDrawClear_Win32">PetscDrawClear_Win32 in src/sys/classes/draw/impls/win32/win32draw.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/impls/x/xops.c.html#PetscDrawClear_X">PetscDrawClear_X in src/sys/classes/draw/impls/x/xops.c</A><BR>


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