# PetscDrawTensorContourPatch
draws a rectangular patch of a contour plot for a two-dimensional array. 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawTensorContourPatch(PetscDraw draw, int m, int n, PetscReal *x, PetscReal *y, PetscReal min, PetscReal max, PetscReal *v)
```
Not Collective


## Input Parameters

- ***draw -*** the draw context
- ***m,n -*** the number of local mesh points in the x and y direction
- ***x,y -*** the locations of the local mesh points
- ***min,max -*** the minimum and maximum value in the entire contour
- ***v -*** the data



## Options Database Keys

- ***-draw_x_shared_colormap -*** Activates private colormap





## Note
This is a lower level support routine, usually the user will call
`PetscDrawTensorContour()`.


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

## Level
advanced

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


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