# 2.11BSD#431 - /usr/src/usr.lib/libplot/hp7221/open.c

##### Functions

    openpl            X

##### Variables

    currentx          X
    currenty          X
    lowx              X
    lowy              X
    scale             X

       1: /*
       2:  * Copyright (c) 1980 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  */
       6:
       7: #ifndef lint
       8: static char sccsid[] = "@(#)open.c	5.1 (Berkeley) 5/7/85";
       9: #endif not lint
      10:
      11: /*
      12:  * Displays plot files on an HP7221 plotter.
      13:  * Cloned from bgplot.c and gigiplot.c by Jim Kleckner
      14:  * Thu Jun 30 13:35:04 PDT 1983
      15:  *  Requires a handshaking program such as hp7221cat to get
      16:  *  the plotter open and ready.
      17:  */
      18:
      19: #include <signal.h>
      20: #include "hp7221.h"
      21:
      22: int currentx = 0;
      23: int currenty = 0;
      24: double lowx = 0.0;
      25: double lowy = 0.0;
      26: double scale = 1.0;
      27:
      28: openpl()
      29: {
      30:     int closepl();
      31:
      32:     /* catch interupts */
      33:     signal(SIGINT, closepl);
      34:     currentx = 0;
      35:     currenty = 0;
      36:     printf( "~VR~W" );
      37:     putMBP( 800, 2000 );
      38:     putMBP( 7600, 9600 );
      39:     printf( "~S" );
      40:     putMBP( XMAX, YMAX );
      41:     printf( "vA~*z" );
      42:
      43:     space(0,0,XMAX,YMAX);
      44: }

#### Defined functions

openpl defined in line 28; never used

#### Defined variables

currentx defined in line 22; used 7 times

- in line 34
- in /usr/src/usr.lib/libplot/hp7221/line.c line 16-18(2)
- in /usr/src/usr.lib/libplot/hp7221/move.c line 16-19(2)
- in /usr/src/usr.lib/libplot/hp7221/open.c line 34
- in /usr/src/usr.lib/libplot/hp7221/point.c line 16

currenty defined in line 23; used 7 times

- in line 35
- in /usr/src/usr.lib/libplot/hp7221/line.c line 16-18(2)
- in /usr/src/usr.lib/libplot/hp7221/move.c line 17-19(2)
- in /usr/src/usr.lib/libplot/hp7221/open.c line 35
- in /usr/src/usr.lib/libplot/hp7221/point.c line 16

lowx defined in line 24; used 3 times

- in /usr/src/usr.lib/libplot/hp7221/hp7221.h line 27
- in /usr/src/usr.lib/libplot/hp7221/space.c line 17-19(2)

lowy defined in line 25; used 3 times

- in /usr/src/usr.lib/libplot/hp7221/hp7221.h line 28
- in /usr/src/usr.lib/libplot/hp7221/space.c line 18-20(2)

scale defined in line 26; used 3 times

- in /usr/src/usr.lib/libplot/hp7221/hp7221.h line 27-28(2)
- in /usr/src/usr.lib/libplot/hp7221/space.c line 21

sccsid defined in line 8; never used

Last modified: 1987-02-18 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1057 |