官术网_书友最值得收藏!

Plotting multiple histograms

Rather than stacking the histograms, you can plot them side by side. The following figure shows the same data as in the previous plot, but has two separate sets of histograms plotted beside each other:

Plotting multiple histograms

To make room, the histogram boxes are automatically drawn thinner. The different data sets are distinguished by different fill colors or patterns, depending on terminal, and/or different styles for the lines delineating the histogram boxes.

Getting ready

We are going to continue to wear out our datafile parabolaCircles.text.

How to do it…

Following are the commands used to produce a multiple histogram plot:

set style fill solid 1.0 border lt -1
set style data histograms
plot [0:40] 'parabolaCircles.text' using (-$2),\'' using (20*$3) notitle

How it works…

The shrewd reader will have noticed that this is the same recipe as the previous one, with the line set style histogram rowstacked removed. Here, we see the default multiple histogram style.

主站蜘蛛池模板: 德庆县| 噶尔县| 广宗县| 潼关县| 桃江县| 马山县| 长寿区| 岢岚县| 泉州市| 旌德县| 湄潭县| 长沙市| 旬阳县| 称多县| 盈江县| 仙桃市| 江油市| 团风县| 肥乡县| 同仁县| 五家渠市| 孟村| 中江县| 海门市| 霸州市| 宕昌县| 分宜县| 安塞县| 明星| 苏尼特左旗| 莱阳市| 阿拉尔市| 晴隆县| 宿州市| 应城市| 昭觉县| 岳阳县| 舟曲县| 米脂县| 伊吾县| 德格县|