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