- 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.
- 同步:秩序如何從混沌中涌現(xiàn)
- LibGDX Game Development Essentials
- 算法競賽入門經(jīng)典:習(xí)題與解答
- Test-Driven Development with Mockito
- Spark快速大數(shù)據(jù)分析(第2版)
- 從0到1:數(shù)據(jù)分析師養(yǎng)成寶典
- 新型數(shù)據(jù)庫系統(tǒng):原理、架構(gòu)與實踐
- 云計算與大數(shù)據(jù)應(yīng)用
- 大數(shù)據(jù)算法
- 數(shù)據(jù)要素五論:信息、權(quán)屬、價值、安全、交易
- Neural Network Programming with TensorFlow
- 大數(shù)據(jù)時代下的智能轉(zhuǎn)型進(jìn)程精選(套裝共10冊)
- 數(shù)據(jù)挖掘原理與SPSS Clementine應(yīng)用寶典
- “互聯(lián)網(wǎng)+”時代立體化計算機(jī)組
- SQL Server深入詳解