12 |
|
|
13 |
|
#include "tgraph.h" |
14 |
|
#include "paths.h" |
15 |
+ |
#include "plot.h" |
16 |
|
|
16 |
– |
|
17 |
|
#define XLEGEND (XBEG+XSIZ+4*TSIZ) /* x start of legend */ |
18 |
|
|
19 |
|
#define YLEGEND (YBEG+2*YSIZ/3) /* y start of legend */ |
49 |
|
|
50 |
|
|
51 |
|
|
52 |
< |
|
53 |
< |
|
54 |
< |
main(argc, argv) |
55 |
< |
|
56 |
< |
int argc; |
57 |
< |
char **argv; |
58 |
< |
|
52 |
> |
int |
53 |
> |
main( |
54 |
> |
int argc, |
55 |
> |
char **argv |
56 |
> |
) |
57 |
|
/* |
58 |
|
* Take Tel-A-Graf runnable files and convert them to |
59 |
|
* metafile primitives to send to standard output |
64 |
|
FILE *fp; |
65 |
|
int axflag; |
66 |
|
|
69 |
– |
#ifdef CPM |
70 |
– |
fixargs("tscat", &argc, &argv); |
71 |
– |
#endif |
72 |
– |
|
67 |
|
progname = *argv++; |
68 |
|
argc--; |
69 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
< |
|
121 |
< |
plot(fp) /* read file and generate plot */ |
122 |
< |
|
123 |
< |
FILE *fp; |
130 |
< |
|
120 |
> |
void |
121 |
> |
plot( /* read file and generate plot */ |
122 |
> |
FILE *fp |
123 |
> |
) |
124 |
|
{ |
125 |
|
int ncur = 0; /* curves seen so far */ |
126 |
|
char line[255], *s; |