- gnuplot Cookbook
- Lee Phillips
- 171字
- 2021-08-20 15:42:55
Making a basic histogram plot
This recipe shows you how to make the simplest step-type histogram. Later, we will build histogram and statistical plots on this, but sometimes this is all you need. The following figure shows a simple step-type histogram:

Getting ready
We're going to plot a part of our file parabola.text
, so make sure that's still available. Of course, if you have your own sorted statistical data that will probably be more interesting.
How to do it…
Type the following command to make a histogram plot:
plot [-2:2] 'parabola.text' with histeps
How it works…
As we can see, rather than drawing a line through a series of x-y points, the histeps style draws a staircase composed of horizontal and vertical line segments. The vertical lines are drawn not at the actual x-coordinates given in the data, but at the average values of neighboring x-coordinates. This is the usual way to construct a histogram, where each box represents "how much" is contained in each interval between two x-values.
- MySQL高可用解決方案:從主從復(fù)制到InnoDB Cluster架構(gòu)
- 企業(yè)數(shù)字化創(chuàng)新引擎:企業(yè)級PaaS平臺HZERO
- 分布式數(shù)據(jù)庫系統(tǒng):大數(shù)據(jù)時(shí)代新型數(shù)據(jù)庫技術(shù)(第3版)
- SQL查詢:從入門到實(shí)踐(第4版)
- 大數(shù)據(jù)導(dǎo)論
- 云計(jì)算服務(wù)保障體系
- Lean Mobile App Development
- 大數(shù)據(jù)營銷:如何讓營銷更具吸引力
- Scratch 3.0 藝術(shù)進(jìn)階
- 數(shù)據(jù)庫原理與應(yīng)用(Oracle版)
- The Game Jam Survival Guide
- 企業(yè)級容器云架構(gòu)開發(fā)指南
- IPython Interactive Computing and Visualization Cookbook(Second Edition)
- SQL Server深入詳解
- Gideros Mobile Game Development