# PetscDrawIndicatorFunction
Draws an indicator function (where a relationship is true) on a `PetscDraw` 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawIndicatorFunction(PetscDraw draw, PetscReal xmin, PetscReal xmax, PetscReal ymin, PetscReal ymax, int c, PetscErrorCode (*indicator)(void *, PetscReal, PetscReal, PetscBool *), void *ctx)
```
Not collective


## Input Parameters

- ***draw -*** a `PetscDraw`
- ***xmin,xmax,ymin,ymax -*** region to draw indicator function
- ***f -*** the indicator function





## See Also
 `PetscDraw`

## Level
developer

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


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