:orphan:
# PetscDrawTensorContour
draws a contour plot for a two-dimensional array 
## Synopsis
```
#include "petscdraw.h" 
PetscErrorCode PetscDrawTensorContour(PetscDraw draw, int m, int n, const PetscReal xi[], const PetscReal yi[], PetscReal *v)
```
Collective on draw, but draw must be sequential


## Input Parameters

- ***draw  -*** the draw context
- ***m,n   -*** the global number of mesh points in the x and y directions
- ***xi    -*** the locations of the global mesh points in the horizontal direction (optional, use `NULL` to indicate uniform spacing on [0,1])
- ***yi    -*** the locations of the global mesh points in the vertical direction (optional, use `NULL` to indicate uniform spacing on [0,1])
- ***V     -*** the values



## Options Database Keys

- ***-draw_x_shared_colormap -*** Indicates use of private colormap
- ***-draw_contour_grid -*** draws grid contour





## See Also
 `PetscDraw`, `PetscDrawTensorContourPatch()`, `PetscDrawScalePopup()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/draw/interface/dtri.c.html#PetscDrawTensorContour">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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
