Actual source code: axisimpl.h


  2: #include <petscdraw.h>
  3: #include <petsc/private/petscimpl.h>

  5: struct _p_PetscDrawAxis {
  6:   PETSCHEADER(int);
  7:   PetscReal      xlow,ylow,xhigh,yhigh;                    /* User - coord limits */
  8:   PetscErrorCode (*ylabelstr)(PetscReal,PetscReal,char**);/* routines to generate labels */
  9:   PetscErrorCode (*xlabelstr)(PetscReal,PetscReal,char**);
 10:   PetscErrorCode (*xticks)(PetscReal,PetscReal,int,int*,PetscReal*,int);
 11:   PetscErrorCode (*yticks)(PetscReal,PetscReal,int,int*,PetscReal*,int);
 12:                                            /* location and size of ticks */
 13:   PetscDraw win;
 14:   int       ac,tc,cc;                     /* axis,tick, character color */
 15:   char      *xlabel,*ylabel,*toplabel;
 16:   PetscBool hold;
 17: };

 19: #define MAXSEGS 20

 21: PETSC_INTERN PetscErrorCode PetscADefTicks(PetscReal,PetscReal,int,int*,PetscReal*,int);
 22: PETSC_INTERN PetscErrorCode PetscADefLabel(PetscReal,PetscReal,char**);
 23: PETSC_INTERN PetscErrorCode PetscAGetNice(PetscReal,PetscReal,int,PetscReal*);
 24: PETSC_INTERN PetscErrorCode PetscAGetBase(PetscReal,PetscReal,int,PetscReal*,int*);

 26: PETSC_INTERN PetscErrorCode PetscStripe0(char*);
 27: PETSC_INTERN PetscErrorCode PetscStripAllZeros(char*);
 28: PETSC_INTERN PetscErrorCode PetscStripTrailingZeros(char*);
 29: PETSC_INTERN PetscErrorCode PetscStripInitialZero(char*);
 30: PETSC_INTERN PetscErrorCode PetscStripZeros(char*);
 31: PETSC_INTERN PetscErrorCode PetscStripZerosPlus(char*);