DrawTensorContour

Draws a contour plot for a two-dimensional array that is stored as a PETSc vector.

Synopsis

#include "draw.h" 
int DrawTensorContour(Draw win,int m,int n,const PetscReal xi[],const PetscReal yi[],Scalar *v)
Collective on Draw, but Draw must be sequential

Input Parameters

win - the window to draw in
m,n - the global number of mesh points in the x and y directions
xi,yi - the locations of the global mesh points (optional, use PETSC_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

Keywords

Draw, tensor, contour, vector

See Also

DrawTensorContourPatch()

Examples

src/snes/examples/tutorials/ex4f.F
src/snes/examples/tutorials/ex4.c

Level:intermediate
Location:src/sys/src/draw/interface/dtri.c
Graphics (Draw) Index
Table of Contents