:orphan: # 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 src/sys/classes/draw/utils/zoom.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)