13 #define putsi(a) putc((char) (a), plotfile); \ 14 putc((char) ((a) >> 8), plotfile) 17 static char *
linestyle[] = {
"solid",
"dotted",
"longdashed",
"shortdashed",
41 plotfile = fopen((
char*)graph->devdep,
"wb");
43 graph->devdep = (
char *)
NULL;
48 switch (graph->graphtype) {
67 putsi(graph->absolute.width);
68 putsi(graph->absolute.height);
71 graph->fontwidth = 12;
72 graph->fontheight = 24;
75 graph->devdep = (
char *)
NULL;
144 double theta1, theta2;
148 xs = radius*
sin(theta1);
149 ys = radius*
cos(theta1);
150 xf = radius*
sin(theta2);
151 yf = radius*
cos(theta2);
205 if (linestyleid < 0) {
int Plt5_Pixel(int x, int y)
static char * linestyle[]
int Plt5_Arc(int x0, int y0, int radius, double theta1, double theta2)
internalerror(char *message)
static int currentlinestyle
int Plt5_NewViewport(GRAPH *graph)
int Plt5_Box(int x1, int y1, int x2, int y2)
int Plt5_Polygon(POLYGON *p)
int Plt5_Text(char *text, int x, int y)
int Plt5_SetColor(int colorid)
int Plt5_Line(int x1, int y1, int x2, int y2)
int Plt5_SetLinestyle(int linestyleid)