petsc-3.8.4 2018-03-24
Report Typos and Errors


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


#include "petscdraw.h" 
PetscErrorCode  PetscDrawTensorContour(PetscDraw draw,int m,int n,const PetscReal xi[],const PetscReal yi[],PetscReal *v)
Collective on PetscDraw, but PetscDraw must be sequential

Input Parameters

draw - the draw context
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 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 - PetscDraws grid contour

See Also

PetscDrawTensorContourPatch(), PetscDrawScalePopup()

Index of all Draw routines
Table of Contents for all manual pages
Index of all manual pages