xref: /csrg-svn/lib/libplot/hp7221/open.c (revision 15475)
1 #ifndef lint
2 static char sccsid[] = "@(#)open.c	4.1 (Berkeley) 11/10/83";
3 #endif
4 
5 /*
6  * Displays plot files on an HP7221 plotter.
7  * Cloned from bgplot.c and gigiplot.c by Jim Kleckner
8  * Thu Jun 30 13:35:04 PDT 1983
9  *  Requires a handshaking program such as hp7221cat to get
10  *  the plotter open and ready.
11  */
12 
13 #include <signal.h>
14 #include "hp7221.h"
15 
16 int currentx = 0;
17 int currenty = 0;
18 double lowx = 0.0;
19 double lowy = 0.0;
20 double scale = 1.0;
21 
22 openpl()
23 {
24 	int closepl();
25 
26 	/* catch interupts */
27 	signal(SIGINT, closepl);
28 	currentx = 0;
29 	currenty = 0;
30 	printf( "~VR~W" );
31 	putMBP( 800, 2000 );
32 	putMBP( 7600, 9600 );
33 	printf( "~S" );
34 	putMBP( XMAX, YMAX );
35 	printf( "vA~*z" );
36 
37 	space(0,0,XMAX,YMAX);
38 }
39