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

  • 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.

主站蜘蛛池模板: 东城区| 青浦区| 汉源县| 黄骅市| 前郭尔| 大悟县| 深水埗区| 赫章县| 北宁市| 峨眉山市| 时尚| 新郑市| 灵川县| 山东| 杨浦区| 镇雄县| 木里| 左云县| 株洲县| 双桥区| 安西县| 阿拉善盟| 二连浩特市| 武隆县| 米脂县| 金塔县| 晋宁县| 江油市| 越西县| 道真| 安宁市| 勐海县| 建德市| 神池县| 香港 | 澎湖县| 蚌埠市| 伊春市| 石城县| 廊坊市| 靖西县|