1
C-----------------------------------------------
3
C Routine to initialize a one-independent-variable histogram
5
subroutine hbook1(id,inlabel,nx,xmin,xmax,zinitial)
7
C id = integer used to identify histogram to HFILL
8
C inlabel = label to be written on the output by the plotting
9
C program (character of len <=40)
10
C nx = number of x bins (integer)
11
C xmin = min x value (real)
12
C xmax = max x value (real)
13
C zinitial = initial value for each bin (real)
18
if (nhist .eq. nhistmax) then
19
print*,' Maximum number of histograms exceeded'
22
label(nhist) = inlabel
24
single dim(nhist) = .true.
26
pointer(nhist+1) = nx+3+k
30
do i=k+3,pointer(nhist+1)-1