DrawTensorContour

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

Synopsis

int DrawTensorContour(Draw win,int m,int n,double *x,double *y,Vec V)
Collective on Draw and Vec

Input Parameters

win - the window to draw in
m,n - the global number of mesh points in the x and y directions
x,y - the locations of the global mesh points (optional, use PETSC_NULL to indicate uniform spacing on [0,1])
V - the vector

Options Database Keys

-draw_x_private_colormap - Indicates use of private colormap
-draw_contour_grid - Draws grid contour

Note

This may be a basic enough function to be a graphics primativebut at this time it uses DrawTriangle().

Keywords

Draw, tensor, contour, vector

Location: src/vec/utils/cmesh.c
Vector Index
Table of Contents