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

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.

主站蜘蛛池模板: 二连浩特市| 司法| 乐至县| 武定县| 昌都县| 哈密市| 读书| 景谷| 城步| 嘉义县| 岗巴县| 邵阳市| 鞍山市| 大连市| 潼关县| 无棣县| 抚顺县| 电白县| 建德市| 弥勒县| 上蔡县| 梧州市| 深泽县| 武功县| 博爱县| 蓬安县| 汽车| 乳山市| 图木舒克市| 桃源县| 皋兰县| 扬州市| 东光县| 古田县| 建始县| 义马市| 饶河县| 兰溪市| 嘉祥县| 伊春市| 定襄县|