#include "petscdraw.h" #include "petscsys.h" PetscErrorCode PetscDrawSPCreate(PetscDraw draw,int dim,PetscDrawSP *drawsp)Collective on PetscDraw
|win||- the window where the graph will be made.|
|dim||- the number of sets of points which will be drawn|
Notes: 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.