# PetscDrawZoom
Allows one to provide a function that gets called for zooming in on a drawing using the mouse buttons 
## Synopsis
```
#include "petscdraw.h"  
PetscErrorCode PetscDrawZoom(PetscDraw draw, PetscErrorCode (*func)(PetscDraw, void *), void *ctx)
```
Collective draw


## Input Parameters

- ***draw -*** the window where the graph will be made.
- ***func -*** users function that draws the graphic
- ***ctx -*** pointer to any user required data





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

## Level
advanced

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


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