ftp.nice.ch/pub/next/unix/developer/plplot.3.0.s.tar.gz#/plplot/examples/example05.c

This is example05.c in view mode; [Download] [Up]

#include <math.h>

/* draw a histogram */
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();
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.