home *** CD-ROM | disk | FTP | other *** search
- /* 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();
- }
-