1
! $Id: x05f.f90,v 1.1 2006/05/16 20:24:12 airwin Exp $
2
! Draws a histogram from sample data
4
! Copyright (C) 2004 Alan W. Irwin
6
! This file is part of PLplot.
8
! PLplot is free software; you can redistribute it and/or modify
9
! it under the terms of the GNU General Library Public License as
10
! published by the Free Software Foundation; either version 2 of the
11
! License, or (at your option) any later version.
13
! PLplot is distributed in the hope that it will be useful,
14
! but WITHOUT ANY WARRANTY; without even the implied warranty of
15
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
! GNU Library General Public License for more details.
18
! You should have received a copy of the GNU Library General Public
19
! License along with PLplot; if not, write to the Free Software
20
! Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
use plplot, PI => PL_PI
27
parameter ( NPTS = 2047 )
28
real(kind=plflt) data(NPTS), delta
29
! Process command-line arguments
30
call plparseopts(PL_PARSE_FULL)
36
delta = 2.0_plflt * PI / dble (NPTS)
38
data(i)=sin(delta*dble (i-1))
42
call plhist(data, -1.1_plflt, 1.1_plflt, 44, 0)
44
call pllab('#frValue','#frFrequency', &
45
'#frPLplot Example 5 - Probability function of Oscillator')