home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
236.lha
/
PlPlot_v1.0
/
examples
/
example05.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-04-28
|
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();
}