Debian Codegraph @

packages/seacas/applications/blot/grpbeg.f

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 C=======================================================================
8 SUBROUTINE GRPBEG
9 C=======================================================================
10
11 C --*** GRPBEG *** (GRPLIB) Begin a plot by setting defaults (PLT)
12 C -- Written by Amy Gilkey - revised 03/01/88
13 C --
14 C --GRPBEG begins a plot by enabling the interrupt flag, clearing the
15 C --screen, and setting standard graphics parameters (such as character
16 C --sizes). The graphics parameters are saved the first time through
17 C --this routine and reset to the saved values on following calls.
18
19 C --Routines Called:
20 C -- CPUIFC - (PLTLIB) Initialize interrupt
21 C -- PLTBGN - (PLTLIB) Erase display surface
22 C -- PLTGTG - (PLTLIB) Get graph parameter (see PLTSTG)
23 C -- PLTSTG - (PLTLIB) Set graph parameter
24 C -- 22, 47 = (KXNUMS, KYNUMS) X, Y axis number size
25 C -- 23, 48 = (KXLABS, KYLABS) X, Y axis label size
26 C -- GRCOLR - (GRPLIB) Set color
27 C -- GRSNAP - (GRPLIB) Handle device frame snapping
28
29 PARAMETER (KXNUMS=22, KXLABS=23, KYNUMS=47, KYLABS=48)
30 PARAMETER (KTICSZ=33)
31
32 LOGICAL CPUIFC
33 LOGICAL LDUM, PLTGTG, PLTSTG
34
35 LOGICAL FIRST
36 SAVE FIRST
37 SAVE SZNUM, SZLAB, SZTIC
38
39 DATA FIRST / .TRUE. /
40
41 C --Enable interrupt flag
42 LDUM = CPUIFC (.TRUE.)
43
44 C --Erase display surface
45 CALL PLTBGN
46
47 C --Start plot for snapping
48 CALL GRSNAP ('START', 0)
49
50 C --Save standard graphics parameters
51 IF (FIRST) THEN
52 LDUM = PLTGTG (KXNUMS, SZNUM)
53 LDUM = PLTGTG (KXLABS, SZLAB)
54 LDUM = PLTGTG (KTICSZ, SZTIC)
55 FIRST = .FALSE.
56 END IF
57
58 C --Set up label/numbering size
59 LDUM = PLTSTG (KXNUMS, SZNUM)
60 LDUM = PLTSTG (KXLABS, SZLAB)
61 LDUM = PLTSTG (KYNUMS, SZNUM)
62 LDUM = PLTSTG (KYLABS, SZLAB)
63 LDUM = PLTSTG (KTICSZ, SZTIC)
64
65 C --Set to standard color
66 CALL GRCOLR (0)
67
68 RETURN
69 END