Histograms can be plotted quite easily. At present the histogram
plotting function, plhist
, will plot histograms of the
columns of a matrix. For example:
> // Create data > rand("normal", 0, pi); > r = rand(2000,1); > > // Create plot > ptitle("Histogram, 30 Bins"); > plhist (r, 30);
Figure contains the Postscript output from the previous
example.