home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d2xx
/
d222
/
plplot.lha
/
Plplot
/
examples
/
example05.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-06-19
|
382b
|
22 lines
/* Test of drawing a histogram */
#include <math.h>
main()
{
int i;
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();
}