Jspice3
plotdefs.h
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3e2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1985 Wayne A. Christopher
5  1992 Stephen R. Whiteley
6 ****************************************************************************/
7 
8 /*
9  * General front end stuff for output graphics.
10  */
11 
12 #ifndef PLOTdefs_h
13 #define PLOTdefs_h
14 
15 #define DEF_WIDTH 80 /* Line printer width. */
16 #define DEF_HEIGHT 60 /* Line printer height. */
17 #define IPOINTMIN 20 /* When we start plotting incremental plots. */
18 
19 #include "cpdefs.h"
20 #include "fteinp.h"
21 #include "plotdev.h"
22 
23 #define mylog10(xx) (((xx) > 0.0) ? log10(xx) : (- log10(HUGE)))
24 
25 extern struct plot *plot_cur;
26 
27 /* structure to pass to gr_init(), etc */
28 struct grinit {
29  double *xlims; /* The size of the screen. */
30  double *ylims;
31  char *xname; /* What to label things. */
32  char *plotname;
33  char *hcopy; /* The raster file. */
34  int nplots; /* How many plots there will be. */
35  double xdelta; /* Line increments for the scale. */
36  double ydelta;
37  GRIDTYPE gridtype; /* The grid type */
38  PLOTTYPE plottype; /* and the plot type. */
39  char *xlabel; /* Labels for axes. */
40  char *ylabel;
41  int xtype; /* The types of the data graphed. */
42  int ytype;
43  char *pname;
44  char *commandline; /* For zoomdata() */
45  bool nointerp; /* skip interpolation */
46 };
47 
48 #include "plotext.h"
49 
50 #endif /* PLOTdefs_h */
51 
GRIDTYPE
Definition: fteconst.h:60
PLOTTYPE plottype
Definition: plotdefs.h:38
char * ylabel
Definition: plotdefs.h:40
double * ylims
Definition: plotdefs.h:30
char * plotname
Definition: plotdefs.h:32
Definition: ftedata.h:61
PLOTTYPE
Definition: fteconst.h:73
double xdelta
Definition: plotdefs.h:35
GRIDTYPE gridtype
Definition: plotdefs.h:37
bool nointerp
Definition: plotdefs.h:45
char * xname
Definition: plotdefs.h:31
double * xlims
Definition: plotdefs.h:29
char * pname
Definition: plotdefs.h:43
char * hcopy
Definition: plotdefs.h:33
char * xlabel
Definition: plotdefs.h:39
double ydelta
Definition: plotdefs.h:36
int nplots
Definition: plotdefs.h:34
char * commandline
Definition: plotdefs.h:44
struct plot * plot_cur
Definition: vectors.c:43
int xtype
Definition: plotdefs.h:41
int ytype
Definition: plotdefs.h:42