Histograms

It is possible to draw four types of histograms using the `HISTOGRAMTYPE` characteristic approach, or you can use the `\HISTOGRAM` qualifier to plot a histogram with tails to y=0 and profile along the x-axis.

Using the `HISTOGRAMTYPE` characteristic

The table below shows the histogram type that will be produced depending on the value of `HISTOGRAMTYPE`.

`HISTOGRAMTYPE` | result
`0` | (default value) line graph, not a histogram
`1` | histogram with no tails and profile along the x-axis May control the width and colour individual bars
`2` | histogram with tails to y=0 and profile along the x-axis May control the fill pattern, width, colour of each bar
`3` | histogram without tails and profile along the y-axis May control the height and colour of each bar
`4` | histogram with tails to x=0 and profile along the y-axis May control the fill pattern, height, colour of each bar

Using the `\HISTOGRAM` qualifier

The `\HISTOGRAM` qualifier is inconsistent when used in conjunction with the `\AXESONLY` qualifier.

Using the `\HISTOGRAM` qualifier is equivalent to using a `HISTOGRAMTYPE` setting of `2`. A histogram with tails to y=0 and profile along the x-axis will be plotted. The following three commands:

     SET HISTOGRAMTYPE 2       ! force histogram plotting
     GRAPH X Y                 ! plot axes and histogram
     SET HISTOGRAMTYPE 0       ! reset to default value

are equivalent to the single command:

     GRAPH\HIST X Y

Filling

For information on how to fill the area under a histogram, see the `AREAFILLCOLOR` characteristic. For histograms with tails, types `2` and `4`, it is possible to fill each histogram bar with a different color. For types `1` and `3`, the area under a histogram can be filled with a single color.

For an example of various types of filled histograms see the histogram example.

Replot data on a common scale
Error bars