home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_progs
/
prog_c
/
plplot.lzh
/
PLPLOT
/
PLPLOT.LZH
/
plplot
/
examples
/
example05.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-03-23
|
385 b
|
23 lines
/* Test of drawing a histogram */
#include "plplot.h"
#include <math.h>
main()
{
int i;
static float data[2048];
/* Fill up data points */
for (i=0; i<2048; i++)
data[i]=sin(0.01*(i+1));
plstar(1,1);
plhist(2048,data,-1.1,1.1,44,0);
pllab("#frValue","#frFrequency",
"#frPLPLOT Example 5 - Probability function of Oscillator");
plend();
}