Actual source code: lgimpl.h

petsc-3.7.3 2016-08-01
Report Typos and Errors
  2: /*
  3:        Contains the data structure for plotting several line
  4:     graphs in a window with an axis. This is intended for line
  5:     graphs that change dynamically by adding more points onto
  6:     the end of the X axis.
  7: */

  9: #include <petscdraw.h>         /*I "petscdraw.h" I*/
 10: #include <petsc/private/petscimpl.h>         /*I "petscsys.h" I*/

 12: struct _p_PetscDrawLG {
 13:   PETSCHEADER(int);
 14:   PetscErrorCode (*destroy)(PetscDrawLG);
 15:   PetscErrorCode (*view)(PetscDrawLG,PetscViewer);
 16:   int            len,loc;
 17:   PetscDraw      win;
 18:   PetscDrawAxis  axis;
 19:   PetscReal      xmin,xmax,ymin,ymax,*x,*y;
 20:   int            nopts,dim,*colors;
 21:   PetscBool      use_markers;
 22:   char           **legend;
 23: };
 24: #define CHUNCKSIZE 100