上QQ阅读APP看书,第一时间看更新
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:
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