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

  • gnuplot Cookbook
  • Lee Phillips
  • 158字
  • 2021-08-20 15:42:55

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.

主站蜘蛛池模板: 三穗县| 织金县| 宣城市| 乐至县| 博罗县| 阜南县| 怀化市| 女性| 武定县| 双鸭山市| 黎川县| 库尔勒市| 腾冲县| 九江市| 蒙城县| 长顺县| 剑川县| 临漳县| 通河县| 习水县| 陵川县| 开原市| 贡山| 百色市| 屏南县| 新野县| 洪泽县| 汕尾市| 青神县| 息烽县| 鹤山市| 东丰县| 乌兰察布市| 永善县| 合山市| 黄骅市| 巍山| 周宁县| 思茅市| 漠河县| 达孜县|