Display Histogrammed Data

HISTOGRAM_DISPLAY, a MATLAB program which reads a data file of histogram data and displays it.

The data file is presumed to contain M columns of data, and each column having N items. The first column is assumed to be an ascending series of X coordinates, to be used as the centers of a series of bars. The other columns are assumed to be Y values associated with the bars. In other words, column 1 plus any other column makes a single histogram.

To keep things simple, the program plots all the histograms together, stacking the Y values. For some data, this may be the least confusing view.


histogram_display ('filename')
where reads the data in filename and displays a stacked histogram.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


HISTOGRAM_DISPLAY is available in a MATLAB version.

Related Programs:

HISTOGRAM_DISCRETE, a MATLAB library which tries to make a histogram of data without using bins.


PWC_PLOT, a MATLAB library which converts the definition of a piecewise constant function into plottable data.

Source Code:

Last revised on 30 January 2019.