添加水平线直方图gnuplot [英] add horizontal line histogram gnuplot
本文介绍了添加水平线直方图gnuplot的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在gnuplot的直方图中添加一条水平线,这可能吗?
I would like to add a horizontal line in my histogram in gnuplot, is that possible?
我的直方图在x轴上显示:alea1 alea 2 alea3 nalea1 nalea 2 nalea 3 且y轴从0到25.
My histogram has on the x axis: alea1 alea 2 alea3 nalea1 nalea 2 nalea 3 and the y axis goes from 0 to 25.
在22岁时,我想添加一条从直方图的一端一直延伸到另一端的水平线.
At 22, I want to add a horizontal line that goes all the way across from one end to the other end of the histogram.
推荐答案
尝试添加
, 22 title ""
在绘图命令的末尾.适用于我的测试数据(文件"histo"):
at the end of your plot command. Works for my test data (file "histo"):
# Year Red Green Blue
1990 33 45 18
1991 35 42 19
1992 34 44 14
1993 37 43 25
1994 47 15 30
1995 41 14 32
1996 42 20 35
1997 39 21 31
plot "histo" u 2 t "Red" w histograms, "" u 3 t "Green" w histograms, "" u 4 t "Blue" w histograms, 22 title ""
(摘自Gnuplot in Action)Philip K. Janert)
(taken from Philip K. Janert, Gnuplot in Action)
这篇关于添加水平线直方图gnuplot的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文