petsc-3.13.6 2020-09-29
Report Typos and Errors


Creates a scatter plot data structure.


#include "petscdraw.h" 
#include "petscsys.h" 
PetscErrorCode  PetscDrawSPCreate(PetscDraw draw,int dim,PetscDrawSP *drawsp)
Collective on PetscDraw

Input Parameters

win - the window where the graph will be made.
dim - the number of sets of points which will be drawn

Output Parameters

drawsp -the scatter plot context


Add points to the plot with PetscDrawSPAddPoint() or PetscDrawSPAddPoints(); the new points are not displayed until PetscDrawSPDraw() is called.

PetscDrawSPReset() removes all the points that have been added

The MPI communicator that owns the PetscDraw owns this PetscDrawSP, but the calls to set options and add points are ignored on all processes except the zeroth MPI process in the communicator. All MPI processes in the communicator must call PetscDrawSPDraw() to display the updated graph.

See Also

PetscDrawLGCreate(), PetscDrawLG, PetscDrawBarCreate(), PetscDrawBar, PetscDrawHGCreate(), PetscDrawHG, PetscDrawSPDestroy(), PetscDraw, PetscDrawSP, PetscDrawSPSetDimension(), PetscDrawSPReset(),
PetscDrawSPAddPoint(), PetscDrawSPAddPoints(), PetscDrawSPDraw(), PetscDrawSPSave(), PetscDrawSPSetLimits(), PetscDrawSPGetAxis(),PetscDrawAxis, PetscDrawSPGetDraw()




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