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 <petscsys.h> /*I "petscsys.h" I*/ 11: struct _p_PetscDrawLG { 12: PETSCHEADER(int); 13: PetscErrorCode (*destroy)(PetscDrawLG); 14: PetscErrorCode (*view)(PetscDrawLG,PetscViewer); 15: int len,loc; 16: PetscDraw win; 17: PetscDrawAxis axis; 18: PetscReal xmin,xmax,ymin,ymax,*x,*y; 19: int nopts,dim,*colors; 20: PetscBool use_dots; 21: char **legend; 22: }; 23: #define CHUNCKSIZE 100